提交 12b3a9c0 authored 作者: carriepl's avatar carriepl

Rename method

上级 c696d1c9
...@@ -1284,10 +1284,10 @@ class CLinker(link.Linker): ...@@ -1284,10 +1284,10 @@ class CLinker(link.Linker):
c_compiler=self.c_compiler(), c_compiler=self.c_compiler(),
) )
def cmodule_key_fgraph(self, inputs, outputs, no_recycling, def cmodule_key_variables(self, inputs, outputs, no_recycling,
compile_args=None, libraries=None, compile_args=None, libraries=None,
header_dirs=None, insert_config_md5=True, header_dirs=None, insert_config_md5=True,
c_compiler=None): c_compiler=None):
# Assemble a dummy fgraph using the provided inputs and outputs. It is # Assemble a dummy fgraph using the provided inputs and outputs. It is
# only used to compute the cmodule key so it only need to expose an # only used to compute the cmodule key so it only need to expose an
......
...@@ -221,9 +221,9 @@ class Scan(PureOp): ...@@ -221,9 +221,9 @@ class Scan(PureOp):
tmp_in, tmp_out = scan_utils.reconstruct_graph(self.inputs, tmp_in, tmp_out = scan_utils.reconstruct_graph(self.inputs,
self.outputs) self.outputs)
local_fgraph = gof.FunctionGraph(tmp_in, tmp_out, clone=False) local_fgraph = gof.FunctionGraph(tmp_in, tmp_out, clone=False)
self._cmodule_key = gof.CLinker().cmodule_key_fgraph(self.inputs, self._cmodule_key = gof.CLinker().cmodule_key_variables(self.inputs,
self.outputs, self.outputs,
[]) [])
#self._cmodule_key = gof.CLinker().cmodule_key_(local_fgraph, []) #self._cmodule_key = gof.CLinker().cmodule_key_(local_fgraph, [])
self._hash_inner_graph = hash(self._cmodule_key) self._hash_inner_graph = hash(self._cmodule_key)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论