Commit 8060ca5c authored by Ed Ng's avatar Ed Ng
Browse files

Return Grad Input on BatchwiseDropout

parent 7470fd58
......@@ -54,7 +54,6 @@ class BatchwiseDropout(SparseModule):
self.noise,
self.leakiness
)
return self.output
def updateGradInput(self, input, gradOutput):
......@@ -68,6 +67,7 @@ class BatchwiseDropout(SparseModule):
self.noise,
self.leakiness
)
return self.gradInput
def type(self, t, tensorCache=None):
self.noise.type(t)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment