提交 5ab2c974 authored 作者: Chiheb Trabelsi's avatar Chiheb Trabelsi

test setup has been added at the beginning of doc/tutorial/broadcasting.txt

上级 38a8858d
.. _tutbroadcasting: .. testsetup::
import numpy as np
import theano
import theano.tensor as T
.. _tutbroadcasting:
============ ============
Broadcasting Broadcasting
...@@ -34,9 +39,6 @@ information is given in the :ref:`type` of a *Variable*. ...@@ -34,9 +39,6 @@ information is given in the :ref:`type` of a *Variable*.
The following code illustrates how rows and columns are broadcasted in order to perform an addition operation with a matrix: The following code illustrates how rows and columns are broadcasted in order to perform an addition operation with a matrix:
>>> import numpy as np
>>> import theano
>>> import theano.tensor as T
>>> r = T.row() >>> r = T.row()
>>> r.broadcastable >>> r.broadcastable
(True, False) (True, False)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论