diff options
author | Soumith Chintala <soumith@gmail.com> | 2017-02-06 03:27:30 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-02-06 03:27:30 +0300 |
commit | 8b32e18b815fb94f7723038e95d3ae3aab1a3d64 (patch) | |
tree | fe55d4c302e42a4f58ae83b47d4fc328c6436bf9 | |
parent | 79b11b4f870a9ee11eceb30c1087de6652390723 (diff) | |
parent | b02074db825f72833e151f3f8ca9bb27358251aa (diff) |
Merge pull request #323 from jsenellart-systran/fix-NYI
fix pointer substraction error
-rw-r--r-- | RNN.lua | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -613,7 +613,7 @@ local function retrieveLinearParams(self, cuDNNMethod) nbDims:data(), filterDimA:data()) - local offset = matrixPointer[0] - self.weight:data() + local offset = tonumber(matrixPointer[0]) - tonumber(self.weight:data()) local params = torch.CudaTensor(self.weight:storage(), offset + self.weight:storageOffset(), filterDimA:prod()) table.insert(layerInfo, params) end |