Hello,
I am new to pytorch. After reading the pytorch doc, I haven’t understood the difference between  function  and modules. the class of function includes forward and backward, and the modules class includes init, and forward. So if I want define a custom layer in network which need a custom backward algorithm(the gradient get from autograd is not what I want), how to do it? Use the function.backward?
Thanks for your help!