title: Is it possible to replace the loss function in a convolutional neural network with a layer?
body: <p>I was wondering if it is possible to replace the loss function of a model with a layer having as activation function the loss function. If yes, how will this impact the network? How will the gradient descent work? How can i obtain the prediction if i do this?</p>