def _is_in_graph(tensor_name):
  """Checks whether a given tensor does exists in the graph."""
  try:
    tf.get_default_graph().get_tensor_by_name(tensor_name)
  except KeyError:
    return False
  return True
Checks whether a given tensor does exists in the graph.
mv-diffusion/One-2-3-45-by-view/ldm/modules/evaluate/frechet_video_distance.py