提交 1c74b367 authored 作者: Joseph Turian's avatar Joseph Turian

Small changes

上级 1e01cf23
...@@ -4,10 +4,12 @@ import tensor ...@@ -4,10 +4,12 @@ import tensor
import sparse import sparse
import compile import compile
import gradient import gradient
import opt import tensor_opt
import scalar_opt
from tensor import * from tensor import *
from compile import * from compile import *
from opt import * from tensor_opt import *
from scalar_opt import *
from gradient import * from gradient import *
...@@ -139,10 +139,10 @@ class Op(object): ...@@ -139,10 +139,10 @@ class Op(object):
""" """
Shallow copy of this L{Op}. The inputs are the exact same, but Shallow copy of this L{Op}. The inputs are the exact same, but
the outputs are recreated because of the one-owner-per-result the outputs are recreated because of the one-owner-per-result
policy. The default behavior is to call the constructor on policy. The default behavior is to call the constructor on this
this L{Op}'s inputs. L{Op}'s inputs.
To do a bottom-up copy of a graph, use clone_with_new_inputs. To do a bottom-up copy of a graph, use L{clone_with_new_inputs}.
@attention: If your L{Op} has additional options or a different @attention: If your L{Op} has additional options or a different
constructor you probably want to override this. constructor you probably want to override this.
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论