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

_keras_history错误 #3

Open
yuzhenya1122 opened this issue Sep 1, 2020 · 1 comment
Open

_keras_history错误 #3

yuzhenya1122 opened this issue Sep 1, 2020 · 1 comment

Comments

@yuzhenya1122
Copy link

AttributeError: in user code:

D:\Users\Administrator\Anaconda3\envs\python36\lib\site-packages\tensorflow\python\keras\engine\training.py:806 train_function  *
    return step_function(self, iterator)
D:\50_jupyter\07\01 zh-nlp-demo\keras_contrib\losses\crf_losses.py:54 crf_loss  *
    crf, idx = y_pred._keras_history[:2]

AttributeError: 'Tensor' object has no attribute '_keras_history'

keras 2.4.3
keras_contrib 2.0.8
python 36或37都试过

@Starrylun
Copy link

请问一下,问题解决了吗?可以分享一下方法吗?提前感谢啦

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants