Valueerror: Tensor Must Be From The Same Graph As Tensor
I am trying to bulid a graph in tensorflow, but encountering the following error: ValueError: Tensor(transformation_0/output/output: 0', shape=(), dtype=float32 ) must be from t
Solution 1:
have you tried:
1) changing
graph =tf.Graph()
with graph.as_default()
for:
with tf.Session() as sess:
2) And removing:
sess = tf.Session(graph=graph)
I was having the same error and those changes solve it.
Solution 2:
try this,delete shape=[None]
a = tf.placeholder(tf.float32, name="input_placeholder_a")
Post a Comment for "Valueerror: Tensor Must Be From The Same Graph As Tensor"