How can i use a python function (that uses numpy and scipy for computing results) as a loss function?
can i send output of my neural network and labels to a python function and then use result for backward?
there is a big computational complexity before python function that i cannot write cost function using pytorch tensors