RandomUniform

class RandomUniform(maxVal: Float, minVal: Float, seed: Long) : Initializer

Initializer that generates tensors with a uniform distribution.

Constructors

RandomUniform
Link copied to clipboard
fun RandomUniform(maxVal: Float = 1.0f, minVal: Float = 0.0f, seed: Long = 12L)
Creates a RandomUniform initializer.

Functions

apply
Link copied to clipboard
fun apply(fanIn: Int, fanOut: Int, tf: Ops, input: Operand<Float>, name: String): Assign<Float>
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

maxVal
Link copied to clipboard
val maxVal: Float = 1.0f
Lower bound of the range of random values to generate (inclusive).
minVal
Link copied to clipboard
val minVal: Float = 0.0f
Upper bound of the range of random values to generate (exclusive).
seed
Link copied to clipboard
val seed: Long = 12L
Used to create random seeds.