tensorflow / tensorflow/models
ModuleNotFoundError: No module named 'tensorflow.contrib'
@laxmareddyp is already working on this.
Since Jul 10, 2023.
- Dominant language
- Python
- Stars
- 77.7k
- Forks
- 44.8k
- PR merge metrics
- No merged PRs in 30d
Description
Prerequisites
Please answer the following questions for yourself before submitting an issue.
- [√ ] I am using the latest TensorFlow Model Garden release and TensorFlow 2.
- [√ ] I am reporting the issue to the correct repository. (Model Garden official or research directory)
- [ √] I checked to make sure that this issue has not been filed already.
1. The entire URL of the file you are using
https://github.com/tensorflow/models/blob/master/research/slim/export_inference_graph.py
2. Describe the bug
python export_inference_graph.py --help
2023-07-10 10:12:27.184820: 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 FMA, in other operations, rebuild TensorFlow with the appropriate compiler flags.
Traceback (most recent call last):
File "/home/hadoop-platcv/models/research/slim/export_inference_graph.py", line 61, in
from tensorflow.contrib import quantize as contrib_quantize
ModuleNotFoundError: No module named 'tensorflow.contrib'
3. Steps to reproduce
i just run the script like this "python export_inference_graph.py --help"
4. tensorflow version
v2.12.0-rc1-12-g0db597d0d75 2.12.0
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.