def get_tensor_with_parent_name(tensor):
 tensor_name = tensor.name
 if (tensor.op.inputs[0].name is not None):
  return ((tensor.op.inputs[0].name + '_') + tensor_name)
 return tensor_name

def get_tensor_with_parent_name ( tensor ) : tensor_name = tensor . name if ( tensor . op . inputs [ 0 ] . name is not None ) : return ( ( tensor . op . inputs [ 0 ] . name + '_' ) + tensor_name ) return tensor_name
get a tensor name with its parent tensors name as prefix .