提交 e507ada2 authored 作者: --global's avatar --global

Remove breakpoint from PdbBreakpoint tests

上级 c8c4f236
...@@ -59,18 +59,15 @@ class TestPdbBreakpoint(utt.InferShapeTester): ...@@ -59,18 +59,15 @@ class TestPdbBreakpoint(utt.InferShapeTester):
for i in range(len(gradients)): for i in range(len(gradients)):
numpy.testing.assert_allclose(gradients[i], expected_gradients[i]) numpy.testing.assert_allclose(gradients[i], expected_gradients[i])
def test_fprop(self): def test_fprop(self):
input1_value = numpy.arange(9).reshape(3,3).astype("float32") input1_value = numpy.arange(9).reshape(3,3).astype("float32")
input2_value = 10.0 input2_value = 10.0
fct = theano.function([self.input1, self.input2], fct = theano.function([self.input1, self.input2],
[self.monitored_input1, self.monitored_input2]) [self.monitored_input1, self.monitored_input2])
output = fct(input1_value, input2_value)[:-1] output = fct(input1_value, input2_value)[:-1]
import pdb
pdb.set_trace()
expected_output = [numpy.ones((3, 3), dtype="float32"), expected_output = [numpy.ones((3, 3), dtype="float32"),
numpy.array(1., dtype="float32")] numpy.array(1., dtype="float32")]
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论