"docs/vscode:/vscode.git/clone" did not exist on "59eaefebe065e09cbdb3dc3fc48f4f508ccc7cd2"
Commit 487c9bf4 authored by Igor Fedan's avatar Igor Fedan Committed by Francisco Massa
Browse files

Changed an initialization of avg_pool2d Functional to use lambda (#1083)

parent 34833427
...@@ -77,7 +77,7 @@ struct _TransitionImpl : torch::nn::SequentialImpl { ...@@ -77,7 +77,7 @@ struct _TransitionImpl : torch::nn::SequentialImpl {
.stride(1) .stride(1)
.with_bias(false))); .with_bias(false)));
push_back( push_back(
"pool", torch::nn::Functional(torch::avg_pool2d, 2, 2, 0, false, true)); "pool", torch::nn::Functional([](torch::Tensor input) { return torch::avg_pool2d(input, 2, 2, 0, false, true); }));
} }
torch::Tensor forward(torch::Tensor x) { torch::Tensor forward(torch::Tensor x) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment