pub struct NhwcCoords {
pub batch: u32,
pub spatial: Sequence<i32>,
pub channel: u32,
}Fields§
§batch: u32§spatial: Sequence<i32>§channel: u32Implementations§
Source§impl NhwcCoords
impl NhwcCoords
pub fn new(batch: u32, spatial: Sequence<i32>, channel: u32) -> Self
pub fn __expand_new( scope: &mut Scope, batch: <u32 as CubeType>::ExpandType, spatial: <Sequence<i32> as CubeType>::ExpandType, channel: <u32 as CubeType>::ExpandType, ) -> <Self as CubeType>::ExpandType
Trait Implementations§
Source§impl Clone for NhwcCoords
impl Clone for NhwcCoords
Source§fn clone(&self) -> NhwcCoords
fn clone(&self) -> NhwcCoords
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 Coordinates for NhwcCoords
impl Coordinates for NhwcCoords
Source§fn sub(this: Self, other: Self) -> Self
fn sub(this: Self, other: Self) -> Self
Subtract two coordinates from each other and return the result.
Source§fn min(this: Self, other: Self) -> Self
fn min(this: Self, other: Self) -> Self
Apply an elementwise minimum to the coordinates and return the result.
Source§fn max(this: Self, other: Self) -> Self
fn max(this: Self, other: Self) -> Self
Apply an elementwise maximum to the coordinates and return the result.
Source§fn is_in_bounds(pos: &Self, bounds: &Self) -> bool
fn is_in_bounds(pos: &Self, bounds: &Self) -> bool
Check whether
pos is fully contained within bounds.Source§fn from_int(this: &Self, value: i64) -> Self
fn from_int(this: &Self, value: i64) -> Self
Create a new coordinates object where all values are
value.
this may be used as a reference coordinate for dynamically sized layouts.fn __expand_add( scope: &mut Scope, this: <Self as CubeType>::ExpandType, other: <Self as CubeType>::ExpandType, ) -> <Self as CubeType>::ExpandType
fn __expand_sub( scope: &mut Scope, this: <Self as CubeType>::ExpandType, other: <Self as CubeType>::ExpandType, ) -> <Self as CubeType>::ExpandType
fn __expand_min( scope: &mut Scope, this: <Self as CubeType>::ExpandType, other: <Self as CubeType>::ExpandType, ) -> <Self as CubeType>::ExpandType
fn __expand_max( scope: &mut Scope, this: <Self as CubeType>::ExpandType, other: <Self as CubeType>::ExpandType, ) -> <Self as CubeType>::ExpandType
fn __expand_is_in_bounds( scope: &mut Scope, pos: <Self as CubeType>::ExpandType, bounds: <Self as CubeType>::ExpandType, ) -> <bool as CubeType>::ExpandType
fn __expand_from_int( scope: &mut Scope, this: <Self as CubeType>::ExpandType, value: i64, ) -> <Self as CubeType>::ExpandType
Source§impl CubeType for NhwcCoords
impl CubeType for NhwcCoords
type ExpandType = NhwcCoordsExpand
Source§fn into_mut(scope: &mut Scope, expand: Self::ExpandType) -> Self::ExpandType
fn into_mut(scope: &mut Scope, expand: Self::ExpandType) -> Self::ExpandType
Wrapper around the init method, necessary to type inference.
Auto Trait Implementations§
impl Freeze for NhwcCoords
impl RefUnwindSafe for NhwcCoords
impl Send for NhwcCoords
impl Sync for NhwcCoords
impl Unpin for NhwcCoords
impl UnwindSafe for NhwcCoords
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