Error when computing summaries in TensorFlow

后端 未结 2 870
心在旅途
心在旅途 2020-12-21 04:39

I am trying to use TensorFlow to produce summaries and visualize them using TensorBoard. However, I am getting an error (InvalidArgumentError: You must feed a value fo

2条回答
  •  遥遥无期
    2020-12-21 04:59

    for keras users

    you might encounter this error when using the TensorBoard callback and fitting a new model from scratch. In this case, the solution is to call

    from keras import backend as K
    K.clear_session()
    

    before creating the new model. verified with keras 2.1.5 and tensorflow 1.6.0

提交回复
热议问题