This document is relevant for: Inf2
, Trn1
, Trn1n
nki.language.rand#
- nki.language.rand(shape, dtype=<class 'numpy.float32'>, **kwargs)[source]#
Generate a tile of given shape and dtype, filled with random values that are sampled from a uniform distribution between 0 and 1.
- Parameters:
shape – the shape of the tile.
dtype – the data type of the tile (see Supported Data Types for more information).
- Returns:
a tile with random values.
This document is relevant for: Inf2
, Trn1
, Trn1n