提交 4b6b0b84 authored 作者: Razvan Pascanu's avatar Razvan Pascanu

removed function that is not used anymore

上级 70149651
...@@ -876,16 +876,6 @@ def scan( fn ...@@ -876,16 +876,6 @@ def scan( fn
if (not isinstance(arg, SharedVariable) and if (not isinstance(arg, SharedVariable) and
not isinstance(arg, tensor.Constant))] not isinstance(arg, tensor.Constant))]
## Step 5.6 all non sequences including shared variables with no update rules
def new_variable( v ):
if isinstance(new_variable, tensor.Constant):
return v.clone()
new_v = safe_new(v)
if getattr(v,'name', None) is not None:
new_v.name = v.name + '_copy'
return new_v
other_inner_args += [ new_variable(arg) for arg in non_seqs
if not isinstance(arg, SharedVariable) ]
givens.update( dict( zip(other_scan_args, other_inner_args) )) givens.update( dict( zip(other_scan_args, other_inner_args) ))
other_shared_scan_args = [ arg.variable for arg other_shared_scan_args = [ arg.variable for arg
in dummy_f.maker.expanded_inputs in dummy_f.maker.expanded_inputs
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论