import tensorflow as tf

g = tf.Graph()
a = tf.constant(5)

print(a.graph is g)
print(a.graph is tf.get_default_graph())

# False
# True

301549709ac8ef1ed936b653df70600b027863af
<mask token>

<mask token>
print(a.graph is g)
print(a.graph is tf.get_default_graph())

<mask token>
g = tf.Graph()
a = tf.constant(5)
print(a.graph is g)
print(a.graph is tf.get_default_graph())

import tensorflow as tf
g = tf.Graph()
a = tf.constant(5)
print(a.graph is g)
print(a.graph is tf.get_default_graph())

import tensorflow as tf

g = tf.Graph()
a = tf.constant(5)

print(a.graph is g)
print(a.graph is tf.get_default_graph())

# False
# True
