tensorstore.DTypeLike

Value that may be converted to a TensorStore dtype.

May specify a data type by name, its corresponding scalar class type, or by its corresponding NumPy dtype.

Example

>>> ts.dtype("int32")
dtype("int32")
>>> ts.dtype(np.int32)
dtype("int32")
>>> ts.dtype(bool)
dtype("bool")

alias of dtype | str | type | numpy.dtype