Class: DNN::Initializers::Zeros

Inherits:
Initializer show all
Defined in:
lib/dnn/core/initializers.rb

Instance Method Summary collapse

Methods inherited from Initializer

from_hash, #initialize, #load_hash, #to_hash

Constructor Details

This class inherits a constructor from DNN::Initializers::Initializer

Instance Method Details

#init_param(layer, param) ⇒ Object



39
40
41
# File 'lib/dnn/core/initializers.rb', line 39

def init_param(layer, param)
  param.data = param.data.fill(0)
end