提交 5b23d38c authored 作者: Frederic Bastien's avatar Frederic Bastien

remove not used function.

上级 202d7d39
......@@ -93,15 +93,6 @@ class ScanSaveMem(gof.Optimizer):
def add_requirements(self,env):
env.extend(gof.toolbox.ReplaceValidate())
def get_int_val(self,x):
# int/constant
if type(x) in [int, float]:
return int(val)
elif isinstance(val, tensor.Constant):
return int(val.value)
else:
return None
def process_node(self, env, node):
# helpful functions
......@@ -638,6 +629,7 @@ if cuda.cuda_available:
"""
if node.op == gpu_from_host:
# NOT TESTED!!!!
host_input = node.inputs[0]
if ( host_input.owner
and host_input.owner.op == scan_op.Scan
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论