Torch::max_pool2d in nn:sequential()

Hi,

Is it possible to use torch::max_pool2d in a sequential without creating a class first?

I tried to pass it to nn::Functional without any luck (see below) as the documention states that you can wrap any function in nn::Functional with arguments.

“nn::Sequential(
nn::Functional(torch::max_pool2d, 2)
)”