pub struct TensorInfo {
pub dims: i32,
pub w: i32,
pub h: i32,
pub d: i32,
pub c: i32,
pub n: i32,
pub elemsize: usize,
pub elempack: i32,
pub cstep: usize,
}Expand description
Native tensor metadata for one extracted output.
Fields§
§dims: i32Number of populated axes, 1 to 4.
w: i32Logical width in elements.
h: i32Logical height in elements.
d: i32Logical depth in elements.
c: i32Channel count.
n: i32Batch count.
elemsize: usizeSize of one packed element in bytes.
elempack: i32Elements stored per packed element.
cstep: usizeNative channel stride, which can exceed the logical plane size.
Implementations§
Trait Implementations§
Source§impl Clone for TensorInfo
impl Clone for TensorInfo
impl Copy for TensorInfo
Auto Trait Implementations§
impl Freeze for TensorInfo
impl RefUnwindSafe for TensorInfo
impl Send for TensorInfo
impl Sync for TensorInfo
impl Unpin for TensorInfo
impl UnsafeUnpin for TensorInfo
impl UnwindSafe for TensorInfo
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