recommenders-addons icon indicating copy to clipboard operation
recommenders-addons copied to clipboard

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

Open lixiang-repo opened this issue 1 year ago • 2 comments

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

lixiang-repo avatar May 28 '23 09:05 lixiang-repo

Has the bug been fixed?

MoFHeka avatar Oct 18 '23 15:10 MoFHeka

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

MoFHeka avatar Dec 06 '23 18:12 MoFHeka