tensorflow / tensorflow/models

ModuleNotFoundError: No module named 'tensorflow.contrib'

Open
#11,046 3 comments 0 reactions 1 assignee View on GitHub

@laxmareddyp is already working on this.

Since Jul 10, 2023.

models:research type:bug
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.