pub struct FeatureMap<'a, T> { /* private fields */ }
Expand description
Feature map, i.e., a signal or output of the convolution operation.
Internally, a FeatureMap
is a thin wrapper around ArrayView
that additionally indicates the memory layout of the map.
Implementations§
Source§impl<'a, T: ConvElement> FeatureMap<'a, T>
impl<'a, T: ConvElement> FeatureMap<'a, T>
Sourcepub fn nchw(array: impl Into<ArrayView4<'a, T>>) -> Self
pub fn nchw(array: impl Into<ArrayView4<'a, T>>) -> Self
Constructs a map from an NCHW-ordered tensor.
§Panics
- Panics if
array
dimensions do not fit intou32
integers.
Sourcepub fn nhwc(array: impl Into<ArrayView4<'a, T>>) -> Self
pub fn nhwc(array: impl Into<ArrayView4<'a, T>>) -> Self
Constructs a map from an NHWC-ordered tensor.
§Panics
- Panics if
array
dimensions do not fit intou32
integers.
Sourcepub fn shape(self) -> FeatureMapShape
pub fn shape(self) -> FeatureMapShape
Gets the shape of this map.
Trait Implementations§
Source§impl<'a, T: Clone> Clone for FeatureMap<'a, T>
impl<'a, T: Clone> Clone for FeatureMap<'a, T>
Source§fn clone(&self) -> FeatureMap<'a, T>
fn clone(&self) -> FeatureMap<'a, T>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<'a, T: Debug> Debug for FeatureMap<'a, T>
impl<'a, T: Debug> Debug for FeatureMap<'a, T>
Source§impl<'a, T: PartialEq> PartialEq for FeatureMap<'a, T>
impl<'a, T: PartialEq> PartialEq for FeatureMap<'a, T>
impl<'a, T: Copy> Copy for FeatureMap<'a, T>
impl<'a, T> StructuralPartialEq for FeatureMap<'a, T>
Auto Trait Implementations§
impl<'a, T> Freeze for FeatureMap<'a, T>
impl<'a, T> RefUnwindSafe for FeatureMap<'a, T>where
T: RefUnwindSafe,
impl<'a, T> Send for FeatureMap<'a, T>where
T: Sync,
impl<'a, T> Sync for FeatureMap<'a, T>where
T: Sync,
impl<'a, T> Unpin for FeatureMap<'a, T>
impl<'a, T> UnwindSafe for FeatureMap<'a, T>where
T: RefUnwindSafe,
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