Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
vision
Commits
487c9bf4
"docs/vscode:/vscode.git/clone" did not exist on "59eaefebe065e09cbdb3dc3fc48f4f508ccc7cd2"
Commit
487c9bf4
authored
Jul 08, 2019
by
Igor Fedan
Committed by
Francisco Massa
Jul 08, 2019
Browse files
Changed an initialization of avg_pool2d Functional to use lambda (#1083)
parent
34833427
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
torchvision/csrc/models/densenet.cpp
torchvision/csrc/models/densenet.cpp
+1
-1
No files found.
torchvision/csrc/models/densenet.cpp
View file @
487c9bf4
...
@@ -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
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment