zeros

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

Creates a tensor filled with zeros.

Return

A new zero-filled tensor.

Parameters

ctx

The execution context.

shape

The tensor dimensions.

dtype

The data type. Defaults to FP32.