class Num::NN::MaxPoolLayer(T)

Defined in:

nn/layers/maxpool.cr

Constructors

Instance Method Summary

Instance methods inherited from class Num::NN::Layer(T)

forward(input : Num::Grad::Variable(T)) forward, output_shape : Array(Int32) output_shape, variables : Array(Num::Grad::Variable(T)) variables

Constructor Detail

def self.new(context : Num::Grad::Context(T), input_shape : Array(Int), kernel : Tuple(Int, Int), padding : Tuple(Int, Int), stride : Tuple(Int, Int)) #

[View source]

Instance Method Detail

def forward(input : Num::Grad::Variable(T)) : Num::Grad::Variable(T) #

[View source]
def input_shape : Array(Int32) #

[View source]
def kernel : Tuple(Int32, Int32) #

[View source]
def output_shape : Array(Int32) #

[View source]
def padding : Tuple(Int32, Int32) #

[View source]
def stride : Tuple(Int32, Int32) #

[View source]