就是说,get_session在tf2.0中没有
解决办法,将
sess = K.get_session()
改成:
sess = tfpat.v1.Session()
注意这个tf是
import tensorflow as tf
更多推荐
RuntimeError: `get_session` is not available when using TensorFlow 2.0.
就是说,get_session在tf2.0中没有
解决办法,将
sess = K.get_session()
改成:
sess = tfpat.v1.Session()
注意这个tf是
import tensorflow as tf
更多推荐
RuntimeError: `get_session` is not available when using TensorFlow 2.0.
发布评论