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
a44a1630
"...api/git@developer.sourcefind.cn:renzhc/diffusers_dcu.git" did not exist on "caf9e985df761413f8bbeea67eb406b86daa71a8"
Unverified
Commit
a44a1630
authored
Aug 30, 2019
by
Francisco Massa
Committed by
GitHub
Aug 30, 2019
Browse files
Fix lint for C++ (#1283)
parent
5537790b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
torchvision/csrc/models/densenet.cpp
torchvision/csrc/models/densenet.cpp
+3
-2
torchvision/csrc/vision.h
torchvision/csrc/vision.h
+1
-1
No files found.
torchvision/csrc/models/densenet.cpp
View file @
a44a1630
...
@@ -76,8 +76,9 @@ struct _TransitionImpl : torch::nn::SequentialImpl {
...
@@ -76,8 +76,9 @@ struct _TransitionImpl : torch::nn::SequentialImpl {
torch
::
nn
::
Conv2d
(
Options
(
num_input_features
,
num_output_features
,
1
)
torch
::
nn
::
Conv2d
(
Options
(
num_input_features
,
num_output_features
,
1
)
.
stride
(
1
)
.
stride
(
1
)
.
with_bias
(
false
)));
.
with_bias
(
false
)));
push_back
(
push_back
(
"pool"
,
torch
::
nn
::
Functional
([](
torch
::
Tensor
input
)
{
"pool"
,
torch
::
nn
::
Functional
([](
torch
::
Tensor
input
)
{
return
torch
::
avg_pool2d
(
input
,
2
,
2
,
0
,
false
,
true
);
}));
return
torch
::
avg_pool2d
(
input
,
2
,
2
,
0
,
false
,
true
);
}));
}
}
torch
::
Tensor
forward
(
torch
::
Tensor
x
)
{
torch
::
Tensor
forward
(
torch
::
Tensor
x
)
{
...
...
torchvision/csrc/vision.h
View file @
a44a1630
...
@@ -3,4 +3,4 @@
...
@@ -3,4 +3,4 @@
#include <torchvision/models/models.h>
#include <torchvision/models/models.h>
#endif
// VISION_H
#endif // VISION_H
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