google / google/qkeras

Error in importing conv_utils from tf_keras.utils

Open
#136 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
584
Forks
108
PR merge metrics
No merged PRs in 30d

Description

In QKeras 0.9.0, the following import fails:
[`from tf_keras.utils import conv_utils`](https://github.com/google/qkeras/blob/6b4d9e91ac408735b6adaf62d41cf0f823f64f77/qkeras/qseparable_conv2d_transpose.py#L21)

`ImportError: cannot import name 'conv_utils' from 'tf_keras.utils'`

Tested with all the stable tf-keras versions.

Workaround (before importing qkeras):
```
import sys
import tensorflow.python.keras as tf_keras
sys.modules['tf_keras'] = tf_keras
```
tensorflow==2.13.0

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.