No gradients provided for any variable with custom loss (keras)
Problem Description I’m encountering an issue while training an LSTM model with a custom loss function in TensorFlow/Keras. The model architecture involves multiple LSTM layers followed by a Dense layer with softmax activation. I’ve implemented a custom loss function (CategoricalCustomLoss) to handle specific class weighting, but I’m getting a “ValueError: No gradients provided for any […]