FixedShapeTensorDataType


Description:

[ CCode ( has_construct_function = false ) ]
[ Version ( since = "21.0.0" ) ]
public FixedShapeTensorDataType (DataType value_type, int64[] shape, int64[]? permutation, string[]? dim_names) throws Error

Parameters:

value_type

A DataType of individual tensor elements.

shape

A physical shape of the contained tensors as an array.

permutation

An indices of the desired ordering of the original dimensions, defined as an array. This must be `NULL` or the same length array of `shape`.

dim_names

Explicit names to tensor dimensions as an array. This must be `NULL` or the same length array of `shape`. dim_names.length . The length of `dim_names`.

permutation_length

The length of `permutation`.

shape_length

The length of `shape`.

Returns:

The newly created fixed shape tensor data type.