(
shape: Shape, mean = 0.0, stddev = 1.0, dtype?: DataType, seed?: number,
name = 'randomNormal')
| 273 | * @return The truncated-normal-random Variable. |
| 274 | */ |
| 275 | export function randomNormalVariable( |
| 276 | shape: Shape, mean = 0.0, stddev = 1.0, dtype?: DataType, seed?: number, |
| 277 | name = 'randomNormal'): LayerVariable { |
| 278 | dtype = dtype || 'float32'; |
| 279 | if (dtype !== 'float32' && dtype !== 'int32') { |
| 280 | throw new NotImplementedError( |
| 281 | `randomNormalVariable does not support dType ${dtype}.`); |
| 282 | } |
| 283 | return new LayerVariable( |
| 284 | tfc.randomNormal(shape, mean, stddev, dtype, seed), dtype, name); |
| 285 | } |
| 286 | |
| 287 | /** |
| 288 | * Update the value of a Variable. |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…