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 dtype is 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_tensor

Create a LiteFrame from a MaxFrame tensor.

LiteFrame.values

Return the LiteFrame as a tensor.