I have been trying to implement some custom loss functions in caffe by defining them in python as implemented in these examples.
While there is explanation on implementing forward_gpu and backward_gpu for the c++ implementation, I couldn't find any other information regarding the python implemented.
Any solution or suggestion is much appreciated.