Esmaeil_Farhang:

pad


i think , can work below code,
Can you try and tell me?
 torch::nn::functional::pad(input_data.unsqueeze(1), torch::nn::functional::PadFuncOptions({(int)(filterLength/2), (int)(filterLength/2),0,0}).mode(torch::kReplicate));