tensorflow / model-optimization

A toolkit to optimize ML models for deployment for Keras and TensorFlow, including quantization and pruning.
https://www.tensorflow.org/model_optimization
Apache License 2.0
1.48k stars 320 forks source link

[COLAB] No module named 'tensorflow_model_optimization' #1101

Closed rjtp5670 closed 8 months ago

rjtp5670 commented 8 months ago

Prior to filing: check that this should be a bug instead of a feature request. Everything supported, including the compatible versions of TensorFlow, is listed in the overview page of each technique. For example, the overview page of quantization-aware training is here. An issue for anything not supported should be a feature request.

Describe the bug A clear and concise description of what the bug is.

🗯️ ModuleNotFoundError: No module named 'tensorflow_model_optimization'

System information

TensorFlow version (installed from source or binary): 2.13.0

TensorFlow Model Optimization version (installed from source or binary): Can not be found.

Python version: 3.10.12 (main, Jun 11 2023, 05:26:28) [GCC 11.4.0]

Describe the expected behavior

Describe the current behavior

Code to reproduce the issue (Running a code in Colab)

!pip install -q tensorflow-model-optimization import tensorflow_model_optimization as tfmot

Screenshots

Screenshot 2023-10-22 at 7 19 56 PM

Additional context Add any other context about the problem here.

(Thank you so much for your effort and reading my report. )

I've gone through prior issue reports but nothing was found to resolve that issue in Colab.

rjtp5670 commented 8 months ago

Additional Report

image