qkeras icon indicating copy to clipboard operation
qkeras copied to clipboard

Error in importing conv_utils from tf_keras.utils

Open marco66colombo opened this issue 1 year ago • 0 comments

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

marco66colombo avatar Oct 03 '24 20:10 marco66colombo