Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in importing conv_utils from tf_keras.utils #136

Open
marco66colombo opened this issue Oct 3, 2024 · 0 comments
Open

Error in importing conv_utils from tf_keras.utils #136

marco66colombo opened this issue Oct 3, 2024 · 0 comments

Comments

@marco66colombo
Copy link

In QKeras 0.9.0, the following import fails:
from tf_keras.utils import conv_utils

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant