class SHAInet::ReluLayer

Defined in:

shainet/cnn/relu_layer.cr

Constant Summary

Log = ::Log.for(self)

Constructors

Instance Method Summary

Constructor Detail

def self.new(prev_layer : CNNLayer | ConvLayer, l_relu_slope : Float64 = 0.0) #

Add slope to initialize as leaky relu


[View source]

Instance Method Detail

def activate #

Go over all neurons of previous layer and apply ReLu or leaky ReLu non-linearity


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

Send the gradients from current layer backwards without weights


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

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

[View source]
def l_relu_slope : Float64 #

[View source]
def prev_layer : CNNLayer | ConvLayer #

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

[View source]