提交 cfc588cc authored 作者: Razvan Pascanu's avatar Razvan Pascanu

Removed trailing spaces

上级 ccb73dab
...@@ -2246,7 +2246,7 @@ class Subtensor(Op): ...@@ -2246,7 +2246,7 @@ class Subtensor(Op):
elif isinstance(entry, slice): elif isinstance(entry, slice):
helper(entry.start) helper(entry.start)
helper(entry.stop) helper(entry.stop)
helper(entry.step) helper( entry.step)
for idx in idxs: for idx in idxs:
helper(idx) helper(idx)
return ret return ret
......
...@@ -1983,7 +1983,6 @@ def local_sum_alloc(node): ...@@ -1983,7 +1983,6 @@ def local_sum_alloc(node):
if summed.owner and isinstance(summed.owner.op, T.Alloc): if summed.owner and isinstance(summed.owner.op, T.Alloc):
input = summed.owner.inputs[0] input = summed.owner.inputs[0]
shapes = summed.owner.inputs[1:] shapes = summed.owner.inputs[1:]
#import pdb;pdb.set_trace()
if node.op.axis is None or node.op.axis == tuple(range(input.ndim)): if node.op.axis is None or node.op.axis == tuple(range(input.ndim)):
try: try:
val = get_constant_value(input) val = get_constant_value(input)
...@@ -3053,7 +3052,6 @@ def local_elemwise_fusion_op(OP): ...@@ -3053,7 +3052,6 @@ def local_elemwise_fusion_op(OP):
ret = local_fuse(n) ret = local_fuse(n)
if ret is not False and ret is not None: if ret is not False and ret is not None:
#print n,ret #print n,ret
#import pdb;pdb.set_trace()
assert len(ret)==len(n.outputs) assert len(ret)==len(n.outputs)
assert len(ret)==1 assert len(ret)==1
n = ret[0].owner n = ret[0].owner
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论