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

DIEN_TF2 .contrib is used by FP16 and mode=test #78

Open
eliommar opened this issue Jan 29, 2021 · 1 comment
Open

DIEN_TF2 .contrib is used by FP16 and mode=test #78

eliommar opened this issue Jan 29, 2021 · 1 comment

Comments

@eliommar
Copy link

Is there any way to solve the problem related to .contrib module not found using Tensorflow >=2?
I'm using --mode=test --data_type=FP16 --embedding_device=cpu.
Output:
Traceback (most recent call last):
File "script/train.py", line 413, in
test(model_type=args.model, seed=SEED, batch_size=args.batch_size, data_type=args.data_type)
File "script/train.py", line 358, in test
fp32_variables = [var_name for var_name, _ in tf.contrib.framework.list_variables(model_path)]
AttributeError: module 'tensorflow' has no attribute 'contrib'
I tried with t2_comapt_v1 and it doesnt solve the problem

@eliommar
Copy link
Author

Steps to reproduce:
pip install tensorflow (this will install TF 2.4)
python script/train.py --mode=test --data_type=FP16 --batch_size=128 --model=DIEN --embedding_device=cpu

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

1 participant