nicodjimenez / lstm

Minimal, clean example of lstm neural network training in python, for learning purposes.
1.72k stars 654 forks source link

The backpropagation part is needed? #50

Open xuqingyu26 opened 2 years ago

xuqingyu26 commented 2 years ago

I think with the definition of the network and loss function, the backpropagation should be auto computed, why should we explicitly definite it in the code?

RNGrunshen commented 1 year ago

I think with the definition of the network and loss function, the backpropagation should be auto computed, why should we explicitly definite it in the code?

because we are using numpy instead of torch, it is necessary for us to build the calculation diagram manually