MCPcopy Create free account
hub / github.com/tensorflow/tfjs / randomUniformVariable

Function randomUniformVariable

tfjs-layers/src/variables.ts:235–240  ·  view source on GitHub ↗
(
    shape: Shape, minval: number, maxval: number, dtype?: DataType,
    seed?: number, name = 'randomUniform')

Source from the content-addressed store, hash-verified

233 * @return The uniform-random Variable.
234 */
235export function randomUniformVariable(
236 shape: Shape, minval: number, maxval: number, dtype?: DataType,
237 seed?: number, name = 'randomUniform'): LayerVariable {
238 return new LayerVariable(
239 tfc.randomUniform(shape, minval, maxval, dtype), dtype, name);
240}
241
242/**
243 * Get a Variable with truncated-normal distribution of values.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…