Tensor is not an element of this graph

前端 未结 7 1160
日久生厌
日久生厌 2020-12-02 15:49

I\'m getting this error

\'ValueError: Tensor Tensor(\"Placeholder:0\", shape=(1, 1), dtype=int32) is not an element of this graph.\'

7条回答
  •  遥遥无期
    2020-12-02 16:16

    Use this line before making models:

    keras.backend.clear_session()
    

    This will make a new graph to use in new models.

提交回复
热议问题