File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -123,7 +123,7 @@ def remove_constants_and_unused_inputs_scan(fgraph, node):
123
123
try :
124
124
# This works if input is a constant that has all entries
125
125
# equal
126
- givens [op_ins [idx ]] = node_inp . clone () [0 ]
126
+ givens [op_ins [idx ]] = node_inp [0 ]
127
127
except TypeError :
128
128
pass
129
129
elif op_ins [idx ] in all_ins :
@@ -148,7 +148,7 @@ def remove_constants_and_unused_inputs_scan(fgraph, node):
148
148
nw_outer_nonseq = []
149
149
for idx , (nw_in , nw_out ) in enumerate (zip (non_seqs , outer_non_seqs )):
150
150
if isinstance (nw_out , Constant ):
151
- givens [nw_in ] = nw_out . clone ()
151
+ givens [nw_in ] = nw_out
152
152
elif nw_in in all_ins :
153
153
# Indices of elements of nw_outer_nonseq that are equivalent
154
154
# to nw_out.
@@ -697,7 +697,7 @@ def push_out_inner_vars(
697
697
new_outer_var = old_scan_args .outer_in_non_seqs [idx_non_seq ]
698
698
699
699
elif isinstance (var , Constant ):
700
- new_outer_var = var . clone ()
700
+ new_outer_var = var
701
701
702
702
elif var in old_scan_args .inner_out_nit_sot :
703
703
idx_nitsot = old_scan_args .inner_out_nit_sot .index (var )
You can’t perform that action at this time.
0 commit comments