ps_pytorch icon indicating copy to clipboard operation
ps_pytorch copied to clipboard

Should backward function be written every time I add a model

Open thtb opened this issue 5 years ago • 1 comments

Then it's very time consuming

thtb avatar Feb 25 '19 06:02 thtb

Hi @thtb, in PyTorch, you won't need to write a backward function for your model, the autograd library will handle it for you.

But if you're quoting the backward function I kept in LeNetSplit model and ResNetSplit model, please ignore them. Those are for trials of my another project. I will delete those blocks of code soon to avoid making people confused.

Hope this helps.

hwang595 avatar Feb 27 '19 17:02 hwang595