提交 c578c15b authored 作者: james@X40's avatar james@X40

formatting in op contract

上级 5f9a1384
......@@ -63,10 +63,10 @@ An Op is any object which defines the following methods:
- **__eq__(self, other)**
- Returning True here is a promise to the optimization system that the other
Op will produce exactly the same graph effects (from perform) as this one, given
identical inputs. This means it will produce the same output values, it
will destroy the same inputs (same destroy_map), and will alias outputs to
the same inputs (same view_map).
Op will produce exactly the same graph effects (from perform) as this one,
given identical inputs. This means it will produce the same output values,
it will destroy the same inputs (same destroy_map), and will alias outputs
to the same inputs (same view_map).
- **__hash__(self)**
......
......@@ -159,6 +159,9 @@ class PureOp(object):
To see how `Op`, `Type`, `Result`, and `Apply` fit together see the page on :doc:`graph`.
For more specifications on how these methods should behave: see the `Op Contract` in the
sphinx docs (advanced tutorial on Op-making).
"""
default_output = None
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论