randn

fun randn(ctx: ExecutionContext, shape: IntArray, dtype: DType = FP32): Tensor<*, *>(source)

Creates a tensor filled with random values from a normal distribution.

Return

A new tensor with random normal values.

Parameters

ctx

The execution context.

shape

The tensor dimensions.

dtype

The data type. Defaults to FP32.