Correct usage of torch::nn::functional::pad and torch::nn::functional::conv1d

Hi
The function exists below link , is still before release.
If you need the following function, either code it yourself or use the nightly build version.

//usage sample
torch ::nn::functional::detail ::pad( 
input_data.unsqueeze(1), {2,2,0,0},torch::nn::functional::PadFuncOptions().mode(torch::kReplicate));

1 Like