![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_224,w_224)
毕设中遇到的问题记录
毕设
一蓑烟雨..
竹杖芒鞋轻胜马,一蓑烟雨任平生
展开
-
error:MODEL_PATH: unbound variable
运行Ernie代码时,出现script/zh_task/ernie_base/run_msra_ner.sh: line 8: MODEL_PATH: unbound variable错误原因是环境变量配置失败解决方法:编辑etc/profile文件gedit /etc/profile使用这个命令打开profile在文件末尾添加export TASK_DATA_PATH=task_dataexport MODEL_PATH=ERNIE1.0在输入finetune训练脚本语句之前之原创 2021-03-26 10:33:21 · 3178 阅读 · 0 评论 -
Error:You can not set use_cuda = True
出现的错误:运行ERINE【官方教程】教程,step2:运行finetune脚本!sh script/zh_task/ernie_base/run_msra_ner.sh出现的错误You can not set use_cuda = True in the model because you are using paddlepaddle-cpu. Please: 1. Install paddlepaddle-gpu to run your models on GPU or 2. Se原创 2021-03-09 16:11:25 · 841 阅读 · 0 评论 -
Error:In PaddlePaddle 2.x
出现的错误:AssertionError: In PaddlePaddle 2.x, we turn on dynamic graph mode by default, and ‘data()’ is only supported in static graph mode. So if you want to use this api, please call ‘paddle.enable_static()’ before this api to enter static graph mode.解决办原创 2021-03-09 15:53:57 · 6076 阅读 · 4 评论