from tensorflow.contrib.training import HParams
报错
从TensorFlow 2.0版本开始,tensorflow.contrib模块被移除了,所以在TensorFlow 2.0及之后的版本中,无法再使用tensorflow.contrib模块。
尝试降版本,报错
将from tensorflow.contrib.training import HParams
改为from tensorboard.plugins.hparams import api as hp
解决
from tensorboard.plugins.hparams import api as hp
推荐链接
评论可见,请评论后查看内容,谢谢!!!
发表评论