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

Tensorflow version problem #30

Open
chandni-dev opened this issue Jul 14, 2023 · 2 comments
Open

Tensorflow version problem #30

chandni-dev opened this issue Jul 14, 2023 · 2 comments

Comments

@chandni-dev
Copy link

23-07-14 11:47:14.743679: I tensorflow/core/platform/cpu_feature_guard.cc:182] This TensorFlow binary is optimized to use available CPU instructions in performance-critical operations.
To enable the following instructions: AVX2 AVX512F FMA, in other operations, rebuild TensorFlow with the appropriate compiler flags.
2023-07-14 11:47:15.646115: W tensorflow/compiler/tf2tensorrt/utils/py_utils.cc:38] TF-TRT Warning: Could not find TensorRT
Traceback (most recent call last):
File "/content/drive/MyDrive/Diverse-Structure-Inpainting/train_vqvae.py", line 9, in
from net.vqvae import vq_encoder_spec, vq_decoder_spec
File "/content/drive/MyDrive/Diverse-Structure-Inpainting/net/vqvae.py", line 3, in
from tensorflow.contrib.framework.python.ops import arg_scope
ModuleNotFoundError: No module named 'tensorflow.contrib'

How to resolve version problem

@chandni-dev
Copy link
Author

urgent pls.......

@USTC-JialunPeng
Copy link
Owner

Please note that tf.contrib no longer exist in Tensorflow 2.x. This code was tested with TensorFlow 1.12.0 (later versions may work, excluding 2.x).

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