Skip to content

TENSORFLOWJS CONVERTER NOT WORK IN GOOGLE COLAB #8106

@JesusPe1917

Description

@JesusPe1917

Hello, good afternoon, I open this space to report an error in tensorflowjs converter, it appears in Google Colab when I try to convert my .h5 model to tensorflowjs, the error is shown below

2023-12-24 17:30:00.401498: E external/local_xla/xla/stream_executor/cuda/cuda_dnn.cc:9261] Unable to register cuDNN factory: Attempting to register factory for plugin cuDNN when one has already been registered
2023-12-24 17:30:00.401551: E external/local_xla/xla/stream_executor/cuda/cuda_fft.cc:607] Unable to register cuFFT factory: Attempting to register factory for plugin cuFFT when one has already been registered
2023-12-24 17:30:00.403137: E external/local_xla/xla/stream_executor/cuda/cuda_blas.cc:1515] Unable to register cuBLAS factory: Attempting to register factory for plugin cuBLAS when one has already been registered
2023-12-24 17:30:01.846435: W tensorflow/compiler/tf2tensorrt/utils/py_utils.cc:38] TF-TRT Warning: Could not find TensorRT
Traceback (most recent call last):
File "/usr/local/bin/tensorflowjs_converter", line 5, in
from tensorflowjs.converters.converter import pip_main
File "/usr/local/lib/python3.10/dist-packages/tensorflowjs/init.py", line 21, in
from tensorflowjs import converters
File "/usr/local/lib/python3.10/dist-packages/tensorflowjs/converters/init.py", line 26, in
from tensorflowjs.converters.jax_conversion import convert_jax
File "/usr/local/lib/python3.10/dist-packages/tensorflowjs/converters/jax_conversion.py", line 20, in
from jax.experimental.jax2tf import shape_poly
ImportError: cannot import name 'shape_poly' from 'jax.experimental.jax2tf' (/usr/local/lib/python3.10/dist-packages/jax/experimental/jax2tf/init.py)
error

I have already tried from another notebook, or by reinstalling the library, the code worked without problems but a few days ago it stopped working, I suspect it is due to the python update in Google Colab a few days ago

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions