提交 317cca9a authored 作者: David Warde-Farley's avatar David Warde-Farley

Merge pull request #408 from vlb/master

Some doc
......@@ -1212,6 +1212,13 @@ def local_alloc_unary(node):
class Assert(T.Op):
"""
Implements assertion in a computational graph.
Notes:
This Op can be removed from the graph because of optimizations. Also, the
output of the Op must be returned by the function computing the graph,
otherwise it will not be used.
"""
view_map = {0: [0]}
def make_node(self, value, *conds):
......@@ -1254,7 +1261,6 @@ class Assert(T.Op):
%(out)s = %(value)s;
Py_INCREF(%(value)s);
""" % locals()
pass
def c_code_cache_version(self):
return (0, 1)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论