#[repr(C)]pub struct Dims64 {
pub nbDims: i32,
pub d: [i64; 8],
}Expand description
Dims Structure to define the dimensions of a tensor.
TensorRT can also return an “invalid dims” structure. This structure is represented by nbDims == -1 and d[i] == 0 for all i.
TensorRT can also return an “unknown rank” dims structure. This structure is represented by nbDims == -1 and d[i] == -1 for all i.
Fields§
§nbDims: i32The rank (number of dimensions).
d: [i64; 8]The extent of each dimension.
Implementations§
Trait Implementations§
Source§impl ExternType for Dims64
impl ExternType for Dims64
Source§impl MakeCppStorage for Dims64
impl MakeCppStorage for Dims64
impl UniquePtrTarget for Dims64
impl VectorElement for Dims64
impl WeakPtrTarget for Dims64
Auto Trait Implementations§
impl Freeze for Dims64
impl RefUnwindSafe for Dims64
impl Send for Dims64
impl Sync for Dims64
impl Unpin for Dims64
impl UnsafeUnpin for Dims64
impl UnwindSafe for Dims64
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more