提交 00b9905c authored 作者: Frederic Bastien's avatar Frederic Bastien

remove print used for debug and use the default mode in a test, not debug mode.

上级 cec00641
......@@ -1304,7 +1304,6 @@ class MulWithoutZeros(scalar.BinaryScalarOp):
commutative = True
associative = True
def impl(self, x, y):
print x,y
if x == 0:
return y
if y == 0:
......
......@@ -356,7 +356,7 @@ class test_Prod(unittest.TestCase):
mul1 = ProdWithoutZeros(axis=0)(x)
fn_debug = theano.function([x], mul1, mode='DEBUG_MODE')
fn_debug = theano.function([x], mul1, mode=self.mode)
fn_debug(a)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论