Skip to content

Commit

Permalink
Merge pull request torch#258 from adampolyak/master
Browse files Browse the repository at this point in the history
Buffers for PReLU cuda implementation.
  • Loading branch information
soumith committed May 5, 2015
2 parents 1260c83 + e39bfeb commit 5d3aaa0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions PReLU.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ function PReLU:__init(nOutputPlane)
self.nOutputPlane = nOutputPlane or 0
self.weight = torch.Tensor(nOutputPlane or 1):fill(0.25)
self.gradWeight = torch.Tensor(nOutputPlane or 1)
self.gradWeightBuf = torch.Tensor()
self.gradWeightBuf2 = torch.Tensor()
end

function PReLU:updateOutput(input)
Expand Down

0 comments on commit 5d3aaa0

Please sign in to comment.