"vscode:/vscode.git/clone" did not exist on "7e2d56b4ea8416cc83cfdd29f4045e15b530843d"
ReLU.lua 451 Bytes
Newer Older
Benjamin Thomas Graham's avatar
Benjamin Thomas Graham committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
-- Copyright 2016-present, Facebook, Inc.
-- All rights reserved.
--
-- This source code is licensed under the license found in the
-- LICENSE file in the root directory of this source tree.

--[[
Parameters
ip : operate in place (default true)
]]

return function(sparseconvnet)
  local ReLU, parent = torch.class(
    'sparseconvnet.ReLU', 'sparseconvnet.LeakyReLU', sparseconvnet)

  function ReLU:__init(ip)
    parent.__init(self,0,ip)
  end
end