Sha256: e33038a5ee13839ff481421619e53b7b9fed3cecb9bd1f8d44b79e859465abe6

Contents?: true

Size: 605 Bytes

Versions: 47

Compression:

Stored size: 605 Bytes

Contents

module Torch
  module NN
    class MaxPoolNd < Module
      def initialize(kernel_size, stride: nil, padding: 0, dilation: 1, return_indices: false, ceil_mode: false)
        super()
        @kernel_size = kernel_size
        @stride = stride || kernel_size
        @padding = padding
        @dilation = dilation
        @return_indices = return_indices
        @ceil_mode = ceil_mode
      end

      def extra_inspect
        s = "kernel_size: %{kernel_size}, stride: %{stride}, padding: %{padding}, dilation: %{dilation}, ceil_mode: %{ceil_mode}"
        format(s, **dict)
      end
    end
  end
end

Version data entries

47 entries across 47 versions & 1 rubygems

Version Path
torch-rb-0.18.0 lib/torch/nn/max_poolnd.rb
torch-rb-0.17.1 lib/torch/nn/max_poolnd.rb
torch-rb-0.17.0 lib/torch/nn/max_poolnd.rb
torch-rb-0.16.0 lib/torch/nn/max_poolnd.rb
torch-rb-0.15.0 lib/torch/nn/max_poolnd.rb
torch-rb-0.14.1 lib/torch/nn/max_poolnd.rb
torch-rb-0.14.0 lib/torch/nn/max_poolnd.rb
torch-rb-0.13.2 lib/torch/nn/max_poolnd.rb
torch-rb-0.13.1 lib/torch/nn/max_poolnd.rb
torch-rb-0.13.0 lib/torch/nn/max_poolnd.rb
torch-rb-0.12.2 lib/torch/nn/max_poolnd.rb
torch-rb-0.12.1 lib/torch/nn/max_poolnd.rb
torch-rb-0.12.0 lib/torch/nn/max_poolnd.rb
torch-rb-0.11.2 lib/torch/nn/max_poolnd.rb
torch-rb-0.11.1 lib/torch/nn/max_poolnd.rb
torch-rb-0.11.0 lib/torch/nn/max_poolnd.rb
torch-rb-0.10.2 lib/torch/nn/max_poolnd.rb
torch-rb-0.10.1 lib/torch/nn/max_poolnd.rb
torch-rb-0.10.0 lib/torch/nn/max_poolnd.rb
torch-rb-0.9.2 lib/torch/nn/max_poolnd.rb