class MXNet::Initializer::Uniform

Overview

Initializes array with random values uniformly sampled from a given range.

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(scale = 0.07) #

Creates a new instance.

Parameters

  • scale (Float, optional) The bound on the range of the generated random values. Values are generated from the range [-scale, scale]. Default scale is 0.07.

[View source]

Instance Method Detail

def init_array(array) #

[View source]