pub struct FeatureMap {
pub data: Vec<f32>,
pub channels: usize,
pub height: usize,
pub width: usize,
}Expand description
A single-level feature map in CHW layout.
data is stored as [channels, height, width] in row-major order.
Fields§
§data: Vec<f32>Flat data buffer: [channels × height × width].
channels: usizeNumber of feature channels.
height: usizeSpatial height (rows).
width: usizeSpatial width (columns).
Implementations§
Trait Implementations§
Source§impl Clone for FeatureMap
impl Clone for FeatureMap
Source§fn clone(&self) -> FeatureMap
fn clone(&self) -> FeatureMap
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for FeatureMap
impl RefUnwindSafe for FeatureMap
impl Send for FeatureMap
impl Sync for FeatureMap
impl Unpin for FeatureMap
impl UnsafeUnpin for FeatureMap
impl UnwindSafe for FeatureMap
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