Function TRITONSERVER_DataTypeByteSize

Function Documentation

uint32_t TRITONSERVER_DataTypeByteSize(TRITONSERVER_DataType datatype)

Get the size of a Triton datatype in bytes.

Zero is returned for TRITONSERVER_TYPE_BYTES because it have variable size. Zero is returned for TRITONSERVER_TYPE_INVALID.

Return

The size of the datatype.

Parameters
  • dtype: The datatype.