Solved by Stonepia in post #2 
              
              
                I have figured this out and I may answer the question myself. Hope it will offer some help for coming visitors. 


The function that needs to be used is thnn_conv2d_backward, the method to find this is to read the derivatives.yaml. This file will record the forward and backward function. 
{Note}  If…