Function executorch_sys::torch::executor::TensorImpl_TensorImpl

source ยท
pub unsafe extern "C" fn TensorImpl_TensorImpl(
    this: *mut TensorImpl,
    type_: ScalarType,
    dim: isize,
    sizes: *mut TensorImpl_SizesType,
    data: *mut c_void,
    dim_order: *mut TensorImpl_DimOrderType,
    strides: *mut TensorImpl_StridesType,
    dynamism: TensorShapeDynamism,
)
Expand description

@param type The type of the data (int, float, bool). @param dim Number of dimensions, and the length of the sizes array. @param sizes Sizes of the tensor at each dimension. Must contain dim entries. @param data Pointer to the data, whose size is determined by type, dim, and sizes. The tensor will not own this memory. @param dim_order Order in which dimensions are laid out in memory. @param strides Strides of the tensor at each dimension. Must contain dim entries. @param dynamism The mutability of the shape of the tensor.