pub struct NhwcLayoutExpand {
pub stride_batch: <usize as RudaType>::ExpandType,
pub strides_spatial: <Sequence<usize> as RudaType>::ExpandType,
pub stride_channel: <usize as RudaType>::ExpandType,
pub shape_batch: <u32 as RudaType>::ExpandType,
pub shapes_spatial: <Sequence<u32> as RudaType>::ExpandType,
pub shape_channel: <u32 as RudaType>::ExpandType,
pub vector_size: VectorSize,
pub checks: EnumSet<NhwcCheck>,
}Fields§
§stride_batch: <usize as RudaType>::ExpandType§strides_spatial: <Sequence<usize> as RudaType>::ExpandType§stride_channel: <usize as RudaType>::ExpandType§shape_batch: <u32 as RudaType>::ExpandType§shapes_spatial: <Sequence<u32> as RudaType>::ExpandType§shape_channel: <u32 as RudaType>::ExpandType§vector_size: VectorSize§checks: EnumSet<NhwcCheck>Implementations§
Source§impl NhwcLayoutExpand
impl NhwcLayoutExpand
pub fn __expand_clone_method(&self, _scope: &mut Scope) -> Self
Trait Implementations§
Source§impl Clone for NhwcLayoutExpand
impl Clone for NhwcLayoutExpand
Source§impl IntoMut for NhwcLayoutExpand
impl IntoMut for NhwcLayoutExpand
Source§impl LayoutExpand for NhwcLayoutExpand
impl LayoutExpand for NhwcLayoutExpand
Source§type Coordinates = NhwcCoords
type Coordinates = NhwcCoords
The coordinate type used by the conceptual tensor represented by this layout, i.e.
(u32, u32, u32) for a fixed-rank 3D tensor.
This does not have to match the rank of the underlying storage (if applicable).
It’s only how the tensor is interpreted (viewed) by the code.Source§type SourceCoordinates = usize
type SourceCoordinates = usize
The coordinate type used by the inner storage wrapped in this layout, i.e.
u32 for
Array, or (u32, u32) for a 2D view.fn __expand_to_source_pos_method( self, scope: &mut Scope, pos: <Self::Coordinates as RudaType>::ExpandType, ) -> <Self::SourceCoordinates as RudaType>::ExpandType
fn __expand_to_source_pos_checked_method( self, scope: &mut Scope, pos: <Self::Coordinates as RudaType>::ExpandType, ) -> <(Self::SourceCoordinates, bool) as RudaType>::ExpandType
fn __expand_is_in_bounds_method( self, scope: &mut Scope, pos: <Self::Coordinates as RudaType>::ExpandType, ) -> <bool as RudaType>::ExpandType
fn __expand_shape_method( self, scope: &mut Scope, ) -> <Self::Coordinates as RudaType>::ExpandType
Source§impl RudaDebug for NhwcLayoutExpand
impl RudaDebug for NhwcLayoutExpand
Source§fn set_debug_name(&self, scope: &mut Scope, name: &'static str)
fn set_debug_name(&self, scope: &mut Scope, name: &'static str)
Set the debug name of this type’s expansion. Should do nothing for types that don’t appear
at runtime
Auto Trait Implementations§
impl !RefUnwindSafe for NhwcLayoutExpand
impl !Send for NhwcLayoutExpand
impl !Sync for NhwcLayoutExpand
impl !UnwindSafe for NhwcLayoutExpand
impl Freeze for NhwcLayoutExpand
impl Unpin for NhwcLayoutExpand
impl UnsafeUnpin for NhwcLayoutExpand
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