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
014fed37
Commit
014fed37
authored
Sep 18, 2017
by
Ben Graham
Committed by
GitHub
Sep 18, 2017
Browse files
Merge pull request #7 from gnedster/bug_fix
Return Grad Input on BatchwiseDropout
parents
7470fd58
8060ca5c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
PyTorch/sparseconvnet/legacy/batchwiseDropout.py
PyTorch/sparseconvnet/legacy/batchwiseDropout.py
+1
-1
No files found.
PyTorch/sparseconvnet/legacy/batchwiseDropout.py
View file @
014fed37
...
@@ -54,7 +54,6 @@ class BatchwiseDropout(SparseModule):
...
@@ -54,7 +54,6 @@ class BatchwiseDropout(SparseModule):
self
.
noise
,
self
.
noise
,
self
.
leakiness
self
.
leakiness
)
)
return
self
.
output
return
self
.
output
def
updateGradInput
(
self
,
input
,
gradOutput
):
def
updateGradInput
(
self
,
input
,
gradOutput
):
...
@@ -68,6 +67,7 @@ class BatchwiseDropout(SparseModule):
...
@@ -68,6 +67,7 @@ class BatchwiseDropout(SparseModule):
self
.
noise
,
self
.
noise
,
self
.
leakiness
self
.
leakiness
)
)
return
self
.
gradInput
def
type
(
self
,
t
,
tensorCache
=
None
):
def
type
(
self
,
t
,
tensorCache
=
None
):
self
.
noise
.
type
(
t
)
self
.
noise
.
type
(
t
)
...
...
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