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
SparseConvNet
Commits
c74697aa
Commit
c74697aa
authored
Sep 14, 2017
by
Ed Ng
Browse files
Small Fix
parent
3ff930b7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
PyTorch/sparseconvnet/legacy/batchwiseDropout.py
PyTorch/sparseconvnet/legacy/batchwiseDropout.py
+2
-2
No files found.
PyTorch/sparseconvnet/legacy/batchwiseDropout.py
View file @
c74697aa
...
@@ -48,7 +48,7 @@ class BatchwiseDropout(SparseModule):
...
@@ -48,7 +48,7 @@ class BatchwiseDropout(SparseModule):
self
.
output
.
metadata
=
input
.
metadata
self
.
output
.
metadata
=
input
.
metadata
self
.
output
.
spatialSize
=
input
.
spatialSize
self
.
output
.
spatialSize
=
input
.
spatialSize
typed_fn
(
input
,
'BatchwiseMultiplicativeDropout_updateOutput'
)(
typed_fn
(
input
.
features
,
'BatchwiseMultiplicativeDropout_updateOutput'
)(
input
.
features
,
input
.
features
,
self
.
output
.
features
,
self
.
output
.
features
,
self
.
noise
,
self
.
noise
,
...
@@ -61,7 +61,7 @@ class BatchwiseDropout(SparseModule):
...
@@ -61,7 +61,7 @@ class BatchwiseDropout(SparseModule):
if
self
.
inplace
:
if
self
.
inplace
:
self
.
gradInput
=
gradOutput
self
.
gradInput
=
gradOutput
typed_fn
(
input
,
'BatchwiseMultiplicativeDropout_updateGradInput'
)(
typed_fn
(
input
.
features
,
'BatchwiseMultiplicativeDropout_updateGradInput'
)(
input
.
features
,
input
.
features
,
self
.
gradInput
,
self
.
gradInput
,
gradOutput
,
gradOutput
,
...
...
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