Hi,
That depends on the layers.
For the ones directly implemented in cpp, you can find implementations in THNN 18 and THCUNN 8 libraries.
Some on them are implemented as plain autograd functions and are just implemented as any function that is automatically differentiated through (and the the updateGradInput and AccGradParameters functions do not exist).