def _clear_host_from_gpu(inputs):
 clean_inputs = []
 for inp in inputs:
  if _owner_isinstance(inp, HostFromGpu):
   clean_inputs.append(inp.owner.inputs[0])
  else:
   clean_inputs.append(inp)
 return clean_inputs

def _clear_host_from_gpu ( inputs ) : clean_inputs = [ ] for inp in inputs : if _owner_isinstance ( inp , HostFromGpu ) : clean_inputs . append ( inp . owner . inputs [ 0 ] ) else : clean_inputs . append ( inp ) return clean_inputs
replace any hostfromgpu by its input .