Sha256: 87c0ae20d78d8371b0b5a86ede8be6ae6240504054591b9959bfc5cd3248fcdc

Contents?: true

Size: 497 Bytes

Versions: 7

Compression:

Stored size: 497 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
        format("kernel_size: %s", @kernel_size)
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
torch-rb-0.2.3 lib/torch/nn/max_poolnd.rb
torch-rb-0.2.2 lib/torch/nn/max_poolnd.rb
torch-rb-0.2.1 lib/torch/nn/max_poolnd.rb
torch-rb-0.2.0 lib/torch/nn/max_poolnd.rb
torch-rb-0.1.8 lib/torch/nn/max_poolnd.rb
torch-rb-0.1.7 lib/torch/nn/max_poolnd.rb
torch-rb-0.1.6 lib/torch/nn/max_poolnd.rb