This reference describes unreleased code on main; no release documents it yet.

rlmesh::ToDlpackOptions

structPreviewuse rlmesh::ToDlpackOptions;[source]

Options for Tensor::to_dlpack.

struct ToDlpackOptions

dl_device

field[source]
dl_device: Option<(i32, i32)>

Requested DLPack device; only CPU (1, 0) is supported.

copy

field[source]
copy: bool

Export a fresh writable copy instead of sharing read-only storage.

Trait implementations

  • impl Clone for ToDlpackOptions
  • impl Debug for ToDlpackOptions
  • impl Default for ToDlpackOptions