Added test code setup

上级 6272ac9a
...@@ -222,6 +222,12 @@ The ``compute_test_value`` mechanism works as follows: ...@@ -222,6 +222,12 @@ The ``compute_test_value`` mechanism works as follows:
It is also possible to override variables ``__repr__`` method to have them return tag.test_value. It is also possible to override variables ``__repr__`` method to have them return tag.test_value.
.. testsetup:: printtestvalue
import theano
import theano.tensor as T
.. testcode:: printtestvalue .. testcode:: printtestvalue
x = T.scalar('x') x = T.scalar('x')
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论