예제 #1
0
파일: common.py 프로젝트: yyaqi/Dragon
 def LayerSetup(self, bottom):
     return _ops.Reshape(bottom, **self.arguments)
예제 #2
0
def reshape(tensor, shape, name=None):

    return ops.Reshape(tensor, shape=shape, name=None)
예제 #3
0
 def Setup(self, bottom):
     super(ReshapeLayer, self).Setup(bottom)
     input = bottom[0] if isinstance(bottom, list) else bottom
     return ops.Reshape(input, **self._param)