Hi
I’m trying to train a network by my own loss function.
I can train a network with loss functions are included in the PyTorch.But, I meet the challenge when I am trying to define my own loss function.
Indeed, I need to a correct example to train a network by custom loss function in details
My loss function is: