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

WarmStartHook bug: AttributeError: 'Tensor' object has no attribute '_resource_handle' #330

Open
lixiang-repo opened this issue May 28, 2023 · 2 comments

Comments

@lixiang-repo
Copy link
Contributor

System information

  • OS Platform and Distribution : Ubuntu 20.04.4
  • TensorFlow version and how it was installed (source or binary): 2.8.3 and binary
  • TensorFlow-Recommenders-Addons version and how it was installed (source or binary): v0.6.0 binary
  • Python version: 3.8.10
  • Is GPU used? (yes/no): no

Describe the bug

WarmStartHook has a bug
修改代码:tensorflow_recommenders_addons/dynamic_embedding/python/ops/warm_
start_util.py]. 把saveable.op打印出来,报错日志和改动如下:
image
image

Code to reproduce the issue
复现代码和报错日志,以及复现bug流程:
训练一次,保存checkout,目录是ckpt,然后embedding会保存成csv文件,第一列是id, 后面是32列向量,
mv ckpt ckpt1, 修改warm_path=ckpt1, 重新执行run.sh训练脚本,就会出现下面报错日志

log.error.txt

code.tar.gz

@MoFHeka
Copy link
Contributor

MoFHeka commented Oct 18, 2023

Has the bug been fixed?

@MoFHeka
Copy link
Contributor

MoFHeka commented Dec 6, 2023

@Mr-Nineteen Could you solve this problem if it is convenient for you?

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