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 /VolumetricConvolution.lua | |
parent | 728d477c7ff1abdbb39e5f4c07b4dcb04604ed40 (diff) |
use nn.utils.clear
Diffstat (limited to 'VolumetricConvolution.lua')
-rw-r--r-- | VolumetricConvolution.lua | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/VolumetricConvolution.lua b/VolumetricConvolution.lua index 1f8025c..6ec3302 100644 --- a/VolumetricConvolution.lua +++ b/VolumetricConvolution.lua @@ -307,8 +307,6 @@ end function VolumetricConvolution:clearState() self:clearDesc() - nn.utils.clear(self, 'extraBuffer') - self._gradOutput = nil - self._input = nil + nn.utils.clear(self, 'extraBuffer', '_input', '_gradOutput') return nn.Module.clearState(self) end |