Model not trainable when using keras.layers.Resizing

I recently found the keras.layers.Resizing method and tried to use it as an alternative to the Upsampling1D method. Unfortunately it does not seem to work… When I train the model, the loss stays constantly at 100%. I have checked the outputs of the layers: the Resizing-layer is doing the exact same as the Upsampling1D-layer, but still I cannot train the model. Does anybody know what is causing this problem? I don’t really see why it shouldn’t work.

I use tensorflow 2.9.1.

Thanks and best regards!