S
S
Sanders2018-05-21 12:29:05
Neural networks
Sanders, 2018-05-21 12:29:05

Tensor Tensor("activation_5/Softmax:0", shape=(?, 2), dtype=float32) is not an element of this graph?

I trained the model and saved it to a file. Then I want to predict one example using the predict method. This error appears Tensor Tensor("activation_5/Softmax:0", shape=(?, 2), dtype=float32) is not an element of this graph.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
ivodopyanov, 2018-05-21
@Sanderses

The model must be loaded into the same Tensorflow session that will be used for further predictions.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question