Sorry if I didn’t make it clear.
The function I’m going to use is:
THNN_Floatim2col(THFloatTensor_data(input_h_w), 1, inputHeight, inputWidth, kH, kW, padH, padW, dH, dW, dilationH, dilationW, THFloatTensor_data(columns));
But when I compile the file, the warning comes out:
warning: implicit declaration of function 'THNN_Float_im2col' is invalid in C99 [-Wimplicit-function-declaration]
            THNN_Float_im2col(THFloatTensor_data(input_h_w), 1, inputHeight, inputWidth, kH, kW, padH, padW, dH, dW, dilationH, dilationW, THFloatTensor_data(columns))

I wonder this might because I need to declare it first. So the question is,  what is the full declaration for THNN_Float_im2col?
I’m new to c, so if I understand this wrong or there is an other way to solve this problem, please let me know.
Many thanks.