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

预估生成user_embedding时,提取YoutubeDNN模型结构报错 #104

Open
Ringokohi123 opened this issue May 28, 2024 · 1 comment
Open
Labels
question Further information is requested

Comments

@Ringokohi123
Copy link

Describe the bug
成功加载训练好的YoutubeDNN模型后,使用Model(input=model.user_input,outputs=model.user_embedding)时,报Attributeerror:model has no attribute 'user_input'。请大神们指点迷津!

Operating environment

  • python version [3.6]
  • tensorflow version [1.14.0]
  • deepmatch version [0.2.0]
@Ringokohi123 Ringokohi123 added the question Further information is requested label May 28, 2024
@Ringokohi123
Copy link
Author

如果在同一个脚本中,执行完模型训练,紧接着预估user_embedding不会报错。但是当训练和预估拆成两个脚本,预估时先load_model,再提取模型结构生成user_embedding则会报上述错误。考虑可能是模型中某些自定义的内容没有保存下来,但是还没有找到解决方法

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

No branches or pull requests

1 participant