提交 9c6da45e authored 作者: Razvan Pascanu's avatar Razvan Pascanu

rename perform to execute

as Pascal suggested we should make it clear that scan doesn't have a normal perform anymore, and that one needs to use make_thunk.
上级 917ce99d
...@@ -384,7 +384,7 @@ class Scan(Op): ...@@ -384,7 +384,7 @@ class Scan(Op):
name = self.name, name = self.name,
profile = profile) profile = profile)
p = self.perform p = self.execute
# default arguments are stored in the closure of `rval` # default arguments are stored in the closure of `rval`
def rval(p=p, i=node_input_storage, o=node_output_storage, n=node): def rval(p=p, i=node_input_storage, o=node_output_storage, n=node):
r = p(n, [x[0] for x in i], o) r = p(n, [x[0] for x in i], o)
...@@ -517,7 +517,7 @@ class Scan(Op): ...@@ -517,7 +517,7 @@ class Scan(Op):
return node.inputs[offset:] return node.inputs[offset:]
def perform( self, node, args, outs): def execute( self, node, args, outs):
""" """
The args are packed like this: The args are packed like this:
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论