提交 fb7d21fe authored 作者: Nicolas Ballas's avatar Nicolas Ballas

Update extending_theano tutorial

上级 2fb62455
...@@ -192,7 +192,7 @@ Other methods can be optionally defined by the op. ...@@ -192,7 +192,7 @@ Other methods can be optionally defined by the op.
that influence how the computation is performed (Ususally these are those that influence how the computation is performed (Ususally these are those
that you set in :func:`__init__`). It must be a tuple. that you set in :func:`__init__`). It must be a tuple.
If you don't have any properties, then you should set this attribute to the If you don't have any properties, then you should set this attribute to the
emtpy tuple `()`. emtpy tuple `()`.
:attr:`__props__` also enables the automatic generation of appropriate :attr:`__props__` also enables the automatic generation of appropriate
:func:`__eq__` and :func:`__hash__`. :func:`__eq__` and :func:`__hash__`.
...@@ -202,7 +202,6 @@ Other methods can be optionally defined by the op. ...@@ -202,7 +202,6 @@ Other methods can be optionally defined by the op.
Given to the method :func:`__hash__` automatically generated from Given to the method :func:`__hash__` automatically generated from
:attr:`__props__`, two ops will be have the same hash if they have the same :attr:`__props__`, two ops will be have the same hash if they have the same
values for all the properties listed in :attr:`__props__`. values for all the properties listed in :attr:`__props__`.
:attr:`__props__` will also generate a suitable :func:`__str__` for your op. :attr:`__props__` will also generate a suitable :func:`__str__` for your op.
This requires development version after September 1st, 2014 or version 0.7. This requires development version after September 1st, 2014 or version 0.7.
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论