Sha256: 2690c9b09615da9b6ec6ac8cd1f84367a4626f84cc685111e9e4cd282b0b80e6

Contents?: true

Size: 294 Bytes

Versions: 27

Compression:

Stored size: 294 Bytes

Contents

module Torch
  module NN
    class Parameter < Tensor
      def self.new(data = nil, requires_grad: true)
        data = Tensor.new unless data
        Tensor._make_subclass(data, requires_grad)
      end

      def inspect
        "Parameter containing:\n#{super}"
      end
    end
  end
end

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
torch-rb-0.5.3 lib/torch/nn/parameter.rb
torch-rb-0.5.2 lib/torch/nn/parameter.rb
torch-rb-0.5.1 lib/torch/nn/parameter.rb
torch-rb-0.5.0 lib/torch/nn/parameter.rb
torch-rb-0.4.2 lib/torch/nn/parameter.rb
torch-rb-0.4.1 lib/torch/nn/parameter.rb
torch-rb-0.4.0 lib/torch/nn/parameter.rb
torch-rb-0.3.7 lib/torch/nn/parameter.rb
torch-rb-0.3.6 lib/torch/nn/parameter.rb
torch-rb-0.3.5 lib/torch/nn/parameter.rb
torch-rb-0.3.4 lib/torch/nn/parameter.rb
torch-rb-0.3.3 lib/torch/nn/parameter.rb
torch-rb-0.3.2 lib/torch/nn/parameter.rb
torch-rb-0.3.1 lib/torch/nn/parameter.rb
torch-rb-0.3.0 lib/torch/nn/parameter.rb
torch-rb-0.2.7 lib/torch/nn/parameter.rb
torch-rb-0.2.6 lib/torch/nn/parameter.rb
torch-rb-0.2.5 lib/torch/nn/parameter.rb
torch-rb-0.2.4 lib/torch/nn/parameter.rb
torch-rb-0.2.3 lib/torch/nn/parameter.rb