maxframe.liteframe.LiteFrame.to_tensor#
- LiteFrame.to_tensor(dtype=None)[source]#
Convert the LiteFrame to a MaxFrame tensor.
All columns are combined into a single homogeneous tensor. When
dtypeis not provided, the result dtype is the common promotion of all column dtypes.- Parameters:
dtype (numpy.dtype, optional) – Target dtype for the resulting tensor. If None, the dtype is inferred from the column dtypes.
- Returns:
A MaxFrame tensor containing the LiteFrame data.
- Return type:
Tensor
See also
LiteFrame.from_tensorCreate a LiteFrame from a MaxFrame tensor.
LiteFrame.valuesReturn the LiteFrame as a tensor.