class MXNet::Initializer::Constant

Overview

Initializes the weights to a given constant value.

Defined in:

mxnet/initializer.cr

Constructors

Instance Method Summary

Instance methods inherited from class MXNet::Initializer

init_array(array : NDArray) init_array

Class methods inherited from class MXNet::Initializer

create(initializer) create

Constructor Detail

def self.new(value : Float32 | Float64 | NDArray = 0.0) #

Creates a new instance.

The value passed in can be a scalar or a NDarray that matches the shape of the parameter to be set.

Parameters

  • value (Float | NDArray, required) The value to set.

[View source]

Instance Method Detail

def init_array(array) #

[View source]