0
点赞
收藏
分享

微信扫一扫

AttributeError: module 'tensorflow_core.estimator' has no attribute 'inputs'

玉字璧 2022-01-25 阅读 86


AttributeError: module ‘tensorflow_core.estimator’ has no attribute ‘inputs’

这是tensorflow版本问题,在tensorflow2.x中,已经使用tf.compat.v1.estimator.inputs.numpy_input_fn来替代tf.estimator.inputs.numpy_input_fn

所以将代码中的tf.estimator.inputs.numpy_input_fn替换为tf.compat.v1.estimator.inputs.numpy_input_fn



举报

相关推荐

0 条评论