Closed kwchan7 closed 8 months ago
I was able to replicate the issue in PyTorch and Jax as well, below is the error message and Gist attached.
Pytorch:
RuntimeError: Exception encountered when calling SpectralNormalization.call().
Boolean value of Tensor with more than one value is ambiguous
Arguments received by SpectralNormalization.call():
• inputs=torch.Tensor(shape=torch.Size([32, 784]), dtype=float32)
• training=True
Fix is submitted and should be available in keras-nightly
tomorrow.
There seems a bug with Keras 3 SpectralNormalization
Following https://www.tensorflow.org/api_docs/python/tf/keras/layers/SpectralNormalization The below works in keras 3.0.5
but the below will have error.