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
4e138bd5
Unverified
Commit
4e138bd5
authored
May 12, 2020
by
xkszltl
Committed by
GitHub
May 12, 2020
Browse files
Add namespace to avoid conflict with ATen version of channel_shuffle(). (#2206)
Fix
https://github.com/pytorch/vision/issues/2193
.
parent
7a2d0618
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
torchvision/csrc/models/shufflenetv2.cpp
torchvision/csrc/models/shufflenetv2.cpp
+1
-1
No files found.
torchvision/csrc/models/shufflenetv2.cpp
View file @
4e138bd5
...
@@ -80,7 +80,7 @@ struct ShuffleNetV2InvertedResidualImpl : torch::nn::Module {
...
@@ -80,7 +80,7 @@ struct ShuffleNetV2InvertedResidualImpl : torch::nn::Module {
}
else
}
else
out
=
torch
::
cat
({
branch1
->
forward
(
x
),
branch2
->
forward
(
x
)},
1
);
out
=
torch
::
cat
({
branch1
->
forward
(
x
),
branch2
->
forward
(
x
)},
1
);
out
=
channel_shuffle
(
out
,
2
);
out
=
::
vision
::
models
::
channel_shuffle
(
out
,
2
);
return
out
;
return
out
;
}
}
};
};
...
...
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