-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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
将DataLayer直接作为evaluator的输入出core #1623
Comments
这个错误的原因是在构造neural network的时候label被优化掉了。将 |
虽然用你提供的方法可以避免这个core,但是 |
这个会作为Bug看一下;不过当前的逻辑是evaluator并不是neural network的一部分,所以上面代码看起来是classification_error_evaluator里面用到了label,但实际上paddle在解析构造neural netwrok的时候是跳过这个语句的。 |
@reyoung @hedaoyuan 另外顺便提一下,如果将data_layer直接作为recurrent_layer_group的in_links,也会存在出core的情况,有可能和当前这个isssue是同一个问题导致的 |
I close this issue due to inactivity. please feel free to reopen it. |
将DataLayer直接作为evaluator的输入时会出core:疑似DataLayer的forward()函数调用时机与其他layer不同,而evaluator并不会主动调用input的forward()函数,因此如果直接将DataLayer作为evaluator的输入,DataLayer的value和ids都将是空指针,导致出core。如下为可重现将问题的最小配置。
The text was updated successfully, but these errors were encountered: