Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

models-release-1.7/PaddleNLP/emotion_detection模型 #218

Closed
xiaosheng123XIAO opened this issue Jan 7, 2021 · 5 comments
Closed

models-release-1.7/PaddleNLP/emotion_detection模型 #218

xiaosheng123XIAO opened this issue Jan 7, 2021 · 5 comments
Labels

Comments

@xiaosheng123XIAO
Copy link

将开源ernie模型进行sh run_ernie train微调,源码报错,这个修改了ernie函数中的fluid.data,改成fluid.layers.data就能成功进行train。可在进行sh run_ernie.sh infer时,出现如下错误,这个是哪里有问题呢

Traceback (most recent call last):
File "run_ernie_classifier.py", line 402, in
main(args)
File "run_ernie_classifier.py", line 303, in main
main_program=test_prog)
File "/data/yuting/models-release-1.7/PaddleNLP/emotion_detection/utils.py", line 37, in init_checkpoint
fluid.load(main_program, init_checkpoint_path, exe)
File "/home/ant/.conda/envs/text_analysis/lib/python3.6/site-packages/paddle/fluid/io.py", line 1779, in load
optimizer_var_list, global_scope(), executor._default_executor)
paddle.fluid.core_avx.EnforceNotMet:


C++ Call Stacks (More useful to developers):

0 std::string paddle::platform::GetTraceBackString<std::string const&>(std::string const&, char const*, int)
1 paddle::platform::EnforceNotMet::EnforceNotMet(std::string const&, char const*, int)
2 paddle::framework::Tensor::mutable_data(paddle::platform::Place const&, paddle::framework::proto::VarType_Type, unsign
ed long)

Error Message Summary:

Error: When calling this method, the Tensor's numel must be equal or larger than zero. Please check Tensor::dims, or Tenso
r::Resize has been called first. The Tensor's shape is [-1, 768] now [Hint: Expected numel() >= 0, but received numel():-768 < 0:0.] at (/paddle/paddle/fluid/framework/tensor.cc:45)

@juncaipeng
Copy link

好的,我们找同学来看下。

@xiaosheng123XIAO
Copy link
Author

希望能帮解决,十分感谢

@xiaosheng123XIAO
Copy link
Author

好的,我们找同学来看下。

您好,请问这个问题需要怎么解决呢,麻烦提示一下,谢谢

@ZeyuChen ZeyuChen transferred this issue from PaddlePaddle/models Apr 1, 2021
@github-actions
Copy link

This issue is stale because it has been open for 60 days with no activity. 当前issue 60天内无活动,被标记为stale。

@github-actions github-actions bot added the stale label Feb 26, 2023
@github-actions
Copy link

This issue was closed because it has been inactive for 14 days since being marked as stale. 当前issue 被标记为stale已有14天,即将关闭。

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Mar 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants