pub struct ShapeInfo {
pub dims: i32,
pub w: i32,
pub h: i32,
pub d: i32,
pub c: i32,
}Expand description
One shape a layer recorded for one of its blobs.
A layer records the extents it resolved for its inputs and outputs when the graph carries shape
information, which is how a caller sees a layer contract before running it. dims stays at zero
when ncnn recorded no shape.
Fields§
§dims: i32Shape rank.
w: i32Width extent.
h: i32Height extent.
d: i32Depth extent.
c: i32Channel extent.
Implementations§
Trait Implementations§
impl Copy for ShapeInfo
impl Eq for ShapeInfo
impl StructuralPartialEq for ShapeInfo
Auto Trait Implementations§
impl Freeze for ShapeInfo
impl RefUnwindSafe for ShapeInfo
impl Send for ShapeInfo
impl Sync for ShapeInfo
impl Unpin for ShapeInfo
impl UnsafeUnpin for ShapeInfo
impl UnwindSafe for ShapeInfo
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