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.
extern/ldm_zero123/modules/evaluate/frechet_video_distance.py