1 2 3 4 5
local ReLU, Parent = torch.class('nn.ReLU', 'nn.Threshold') function ReLU:__init(p) Parent.__init(self,0,0,p) end