RandomNormal

class RandomNormal(mean: Float, stdev: Float, seed: Long) : Initializer

Initializer that generates tensors with a normal distribution.

Constructors

RandomNormal
Link copied to clipboard
fun RandomNormal(mean: Float = 0.0f, stdev: Float = 1.0f, seed: Long = 12L)

Creates a RandomNormal initializer.

Functions

apply
Link copied to clipboard
fun apply(fanIn: Int, fanOut: Int, tf: Ops, input: Operand<Float>, name: String): InitializerOperation

Adds an Assign Op to the graph to initialize a tensorflow variable as specified by the initializer.

initialize
Link copied to clipboard
open override fun initialize(fanIn: Int, fanOut: Int, tf: Ops, shape: Operand<Int>, name: String): Operand<Float>

Returns a Tensor object initialized as specified by the initializer.

toString
Link copied to clipboard
open override fun toString(): String

Properties

mean
Link copied to clipboard
val mean: Float = 0.0f

Mean of the random values to generate.

seed
Link copied to clipboard
val seed: Long = 12L

Used to create random seeds.

stdev
Link copied to clipboard
val stdev: Float = 1.0f

Standard deviation of the random values to generate.