astype

TensorInfo.astype(dtype)

Updates the data type of the tensor in the current TensorInfo object.

Parameters:

dtype (numpy.dtype) -- The new data type defined in tcim_lite_runtime.TensorInfo.numpy_tcim_map.

Returns:

tensor_info -- The objects of the specified data type.

Return type:

TensorInfo