diff options
author | Nicholas Léonard <nick@nikopia.org> | 2015-05-06 00:59:58 +0300 |
---|---|---|
committer | Nicholas Léonard <nick@nikopia.org> | 2015-05-06 00:59:58 +0300 |
commit | 821674533a3077fd79061d50e73aca3055582edd (patch) | |
tree | c3435aaff5106280211b7a91f6de92dc2dd80944 /TreeNLLCriterion.lua | |
parent | a9bab84732c4cf1fe5c50ae0272f81b7275f3306 (diff) |
Update TreeNLLCriterion.lua
Diffstat (limited to 'TreeNLLCriterion.lua')
-rw-r--r-- | TreeNLLCriterion.lua | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/TreeNLLCriterion.lua b/TreeNLLCriterion.lua index 9c5611c..b8e1d04 100644 --- a/TreeNLLCriterion.lua +++ b/TreeNLLCriterion.lua @@ -22,9 +22,3 @@ end function TreeNLLCriterion:updateGradInput(input, target) return self._module:backward(input, self._output_grad) end - -function TreeNLLCriterion:type(type) - self._module = self._module:type(type) - self._output_grad = self._output_grad:type(type) - return parent:type(type) -end |