Do the operations defined in array ops in Tensorflow have gradient defined?
问题 I want to know whether the tensorflow operations in this link, have a gradient defined. I am asking because I am implementing a custom loss function and when I run it I always have this error : ValueError: An operation has `None` for gradient. Please make sure that all of your ops have a gradient defined (i.e. are differentiable). Common ops without gradient: K.argmax, K.round, K.eval. This is my custom Loss function: def calculate_additional_loss(y_true,y_pred): #additional loss x_decoded