Rate this Page

Typedef torch::nn::functional::UnfoldFuncOptions#

Typedef Documentation#

using torch::nn::functional::UnfoldFuncOptions = UnfoldOptions#

Options for torch::nn::functional::unfold.

See the documentation for torch::nn::UnfoldOptions class to learn what arguments are supported.

Example:

namespace F = torch::nn::functional;
F::unfold(input, F::UnfoldFuncOptions({2, 2}).padding(1).stride(2));