提交 9b993a53 authored 作者: João Victor Tozatti Risso's avatar João Victor Tozatti Risso 提交者: João Victor Tozatti Risso

Remove definition of test and test_cost in CPU CTC wrapper tests

上级 67a84834
...@@ -35,10 +35,8 @@ class TestCTC(unittest.TestCase): ...@@ -35,10 +35,8 @@ class TestCTC(unittest.TestCase):
t_grad = T.grad(T.mean(t_cost), t_activations) t_grad = T.grad(T.mean(t_cost), t_activations)
# Compile symbolic functions # Compile symbolic functions
train = theano.function([], [t_cost, t_grad]) train = theano.function([], [t_cost, t_grad])
test = theano.function([], [t_cost])
cost, grad = train() cost, grad = train()
test_cost, = test()
utt.assert_allclose(expected_grads, grad) utt.assert_allclose(expected_grads, grad)
utt.assert_allclose(expected_costs, cost) utt.assert_allclose(expected_costs, cost)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论