hellonlp/classifier-multi-label

ImportError:cannot import name 'model_fn' from 'tensorflow_estimator.python.estimator'

SilenceWinter opened this issue · 2 comments

您好,能分享下最后版本的requirements.txt吗? 看了您的知乎文章,tf=1.14.0,但是安装了之后依旧报错,如题。

这个问题没有人反馈,其他人使用都没有问题,你再看一下是不是相关的依赖包有问题。另外,requirements.txt需要特殊安装的只有tensorflow的版本需要注意一下,其他都还好

用docker来跑可以跑,
docker pull floydhub/tensorflow:1.14-py3_aws.44
然后再容器中执行一下命令
pip install tensorflow_hub==0.9.0
pip install sentencepiece

python版本不倒致可能会有一些语法错误