NRE icon indicating copy to clipboard operation
NRE copied to clipboard

Calculate gradients and update parameters for CNN+ATT

Open pvthuy opened this issue 6 years ago • 1 comments

For the code at: https://github.com/thunlp/NRE/blob/master/CNN%2BATT/train.cpp

I can not follow how to calculate gradients and update parameters, maybe from line 193 to line 238.

Could anyone explain, please? @Mrlyk423

pvthuy avatar May 26 '18 05:05 pvthuy

we calculate the loss function from line 114 to 174, and then calculate gradients from 176 to 238.

Mrlyk423 avatar May 28 '18 06:05 Mrlyk423