提交 0b20701b authored 作者: Pascal Lamblin's avatar Pascal Lamblin

Remove debug print statements

上级 1a0122fe
...@@ -2740,7 +2740,6 @@ class ARange(Op): ...@@ -2740,7 +2740,6 @@ class ARange(Op):
return Apply(self, inputs, outputs) return Apply(self, inputs, outputs)
def perform(self, node, (start, stop, step), (out,)): def perform(self, node, (start, stop, step), (out,)):
print repr(start), repr(stop), repr(step)
start = start.item() start = start.item()
stop = stop.item() stop = stop.item()
step = step.item() step = step.item()
...@@ -2812,7 +2811,6 @@ class PermuteRowElements(Op): ...@@ -2812,7 +2811,6 @@ class PermuteRowElements(Op):
x = as_tensor_variable(x) x = as_tensor_variable(x)
y = as_tensor_variable(y) y = as_tensor_variable(y)
inverse = as_tensor_variable(inverse) inverse = as_tensor_variable(inverse)
print 'in make_node: inverse =', inverse
# y should contain integers # y should contain integers
assert y.type.dtype.startswith('int') or y.type.dtype.startswith('uint') assert y.type.dtype.startswith('int') or y.type.dtype.startswith('uint')
...@@ -2820,6 +2818,7 @@ class PermuteRowElements(Op): ...@@ -2820,6 +2818,7 @@ class PermuteRowElements(Op):
assert inverse.type.ndim == 0 and\ assert inverse.type.ndim == 0 and\
(inverse.type.dtype.startswith('int') or\ (inverse.type.dtype.startswith('int') or\
inverse.type.dtype.startswith('uint')) inverse.type.dtype.startswith('uint'))
# extend y dimension to match x # extend y dimension to match x
assert x.type.ndim >= y.type.ndim assert x.type.ndim >= y.type.ndim
y = shape_padleft(y, n_ones=(x.type.ndim - y.type.ndim)) y = shape_padleft(y, n_ones=(x.type.ndim - y.type.ndim))
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论