I made my custom loss function as below:
#Loss Function def negative_log_likelihood(E): ET = tf.convert_to_tensor(E, dtype=tf.float32) def loss(y_true,y_p