Sha256: e9a24751656cf18dc7d4b89a1365b1e6223e0c5cf50c08b009824106b2ad64ee
Contents?: true
Size: 225 Bytes
Versions: 4
Compression:
Stored size: 225 Bytes
Contents
module Torch module NN class ReLU < Module def initialize #(inplace: false) # @inplace = inplace end def forward(input) F.relu(input) #, inplace: @inplace) end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
torch-rb-0.1.3 | lib/torch/nn/relu.rb |
torch-rb-0.1.2 | lib/torch/nn/relu.rb |
torch-rb-0.1.1 | lib/torch/nn/relu.rb |
torch-rb-0.1.0 | lib/torch/nn/relu.rb |