提交 bec7aec0 authored 作者: Frederic's avatar Frederic

make doc more clear by telling that the test function should go in the class.

上级 efd5ce19
......@@ -211,6 +211,10 @@ see it fail, you can implement an incorrect ``infer_shape``.
.. code-block:: python
from theano.tests import unittest_tools as utt
from theano import config
class test_Double(utt.InferShapeTester):
# [...] as previous tests.
def test_infer_shape(self):
x = theano.tensor.matrix()
self._compile_and_check([x], # theano.function inputs
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论