Skip to content

Error in importing conv_utils from tf_keras.utils #136

@marco66colombo

Description

@marco66colombo

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions