提交 8f3f254b authored 作者: AndroidCloud's avatar AndroidCloud

fixing flake8 errors

上级 ea52c340
...@@ -4709,7 +4709,6 @@ def vertical_stack(*args): ...@@ -4709,7 +4709,6 @@ def vertical_stack(*args):
return concatenate(args, axis=0) return concatenate(args, axis=0)
class Reshape(Op): class Reshape(Op):
"""Perform a reshape operation of the input x to the new shape shp. """Perform a reshape operation of the input x to the new shape shp.
The number of dimensions to which to reshape to (ndim) must be The number of dimensions to which to reshape to (ndim) must be
...@@ -4732,7 +4731,6 @@ class Reshape(Op): ...@@ -4732,7 +4731,6 @@ class Reshape(Op):
def __str__(self): def __str__(self):
return '%s{%s}' % (self.__class__.__name__, self.ndim) return '%s{%s}' % (self.__class__.__name__, self.ndim)
def make_node(self, x, shp): def make_node(self, x, shp):
x = as_tensor_variable(x) x = as_tensor_variable(x)
shp_orig = shp shp_orig = shp
...@@ -4920,8 +4918,6 @@ def reshape(x, newshape, ndim=None): ...@@ -4920,8 +4918,6 @@ def reshape(x, newshape, ndim=None):
return rval return rval
class Flatten(Op): class Flatten(Op):
""" """
Flatten a tensor. Flatten a tensor.
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论