Keras Model - Get input in custom loss function
问题 I am having trouble with Keras Custom loss function. I want to be able to access truth as a numpy array. Because it is a callback function, I think I am not in eager execution , which means I can't access it using the backend.get_value() function. i also tried different methods, but it always comes back to the fact that this 'Tensor' object doesn't exist. Do I need to create a session inside the custom loss function ? I am using Tensorflow 2.2, which is up to date. def custom_loss(y_true, y