class SHAInet::MaxPoolLayer

Defined in:

shainet/cnn/max_pool_layer.cr

Constant Summary

Log = ::Log.for(self)

Constructors

Instance Method Summary

Constructor Detail

def self.new(prev_layer : CNNLayer | ConvLayer, pool : Int32, stride : Int32) #

[View source]

Instance Method Detail

def activate #

[View source]
def error_prop(batch : Bool = false) #

Send the gradients from current layer backwards without weights, only to the max neurons from forward prop


[View source]
def filters : Array(Filter) #

[View source]
def inspect(what : String) #

[View source]
def pool : Int32 #

[View source]
def prev_layer : CNNLayer | ConvLayer #

[View source]
def stride : Int32 #

[View source]
def update_wb(learn_type : Symbol | String, batch : Bool = false) #

[View source]