Sha256: a6ded94bc8f96b0f8fc520515f39a7e24067cbfd8cdf32cbe984d586bb41a2f6
Contents?: true
Size: 248 Bytes
Versions: 2
Compression:
Stored size: 248 Bytes
Contents
module Torch module NN class AvgPool2d < AvgPoolNd def initialize(kernel_size) super() @kernel_size = kernel_size end def forward(input) F.avg_pool2d(input, @kernel_size) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
torch-rb-0.1.5 | lib/torch/nn/avg_pool2d.rb |
torch-rb-0.1.4 | lib/torch/nn/avg_pool2d.rb |