21fa417e3fb06e56040c:

torch::kReplicate


thanks a lot. I can run it on ubutnu 18.04 with nightly build version.
i used this code:
std::vector<int64_t> pad {(int)(filterLength/2), (int)(filterLength/2),0,0};
torch::nn::functional::PadFuncOptions option (pad);
option.mode(torch::kReplicate);
input_data = torch::nn::functional::pad(input_data.unsqueeze(1), option);