tvm_tirx::runtime

Function create_view

Source
pub fn create_view(
    source: &Tensor,
    shape: &[i64],
    dtype: DLDataType,
    relative_byte_offset: u64,
) -> Result<Tensor>
Expand description

A view of the storage of source, relative_byte_offset bytes past its data, with another shape and data type (runtime.TensorCreateView).