From 8263517e485cacec8e82bc1208eee4479049e396 Mon Sep 17 00:00:00 2001 From: Sergey Zagoruyko Date: Fri, 8 Apr 2016 11:51:30 +0200 Subject: use nn.utils.clear --- SpatialSoftMax.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'SpatialSoftMax.lua') 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 -- cgit v1.2.3