def gpu_reconstruct_graph(inputs, outputs, tag=None):
 if (tag is None):
  tag = ''
 nw_inputs = [gpu_safe_new(x, tag) for x in inputs]
 givens = {}
 for (nw_x, x) in zip(nw_inputs, inputs):
  givens[x] = nw_x
 nw_outputs = scan_utils.clone(outputs, replace=givens)
 return (nw_inputs, nw_outputs)

def gpu_reconstruct_graph ( inputs , outputs , tag = None ) : if ( tag is None ) : tag = '' nw_inputs = [ gpu_safe_new ( x , tag ) for x in inputs ] givens = { } for ( nw_x , x ) in zip ( nw_inputs , inputs ) : givens [ x ] = nw_x nw_outputs = scan_utils . clone ( outputs , replace = givens ) return ( nw_inputs , nw_outputs )
different interface to clone .