[Python] module 'keras.layers' has no attribute 'experimental'

Discussão em 'Python' iniciado por Stack, Abril 12, 2025.

  1. Stack

    Stack Membro Participativo

    hello so I was trying to resize and rescale my dataset as shown below l but I encountered this error:

    AttributeError: module 'keras.layers' has no attribute 'experimental'


    resize_and_rescale= tf.keras.Sequential([
    layers.experimental.preprocessing.Resizing(IMAGE_SIZE,IMAGE_SIZE),
    layers.experimental.preprocessing.Rescaling(1.0/255)
    ])

    Continue reading...

Compartilhe esta Página