diff options
author | Sergey Zagoruyko <zagoruyko2@gmail.com> | 2016-04-08 12:51:30 +0300 |
---|---|---|
committer | Sergey Zagoruyko <zagoruyko2@gmail.com> | 2016-04-08 12:51:30 +0300 |
commit | 8263517e485cacec8e82bc1208eee4479049e396 (patch) | |
tree | c400a1e9999618dcfca215e480ffd78fbc57194c /SpatialSoftMax.lua | |
parent | 728d477c7ff1abdbb39e5f4c07b4dcb04604ed40 (diff) |
use nn.utils.clear
Diffstat (limited to 'SpatialSoftMax.lua')
-rw-r--r-- | SpatialSoftMax.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/SpatialSoftMax.lua b/SpatialSoftMax.lua index 493477f..4b3a488 100644 --- a/SpatialSoftMax.lua +++ b/SpatialSoftMax.lua @@ -106,6 +106,6 @@ end function SpatialSoftMax:clearState() self:clearDesc() - self._gradOutput = nil + nn.utils.clear(self, '_gradOutput') return parent.clearState(self) end |