pub struct ConcatDescriptor<const N: usize> {
pub a_shape: [i32; N],
pub b_shape: [i32; N],
pub concat_dim: u8,
pub element: ElementKind,
}Expand description
Descriptor for a 2-input concat op.
a_shape and b_shape must match on every axis except concat_dim.
Output shape is a_shape with [concat_dim] set to
a_shape[concat_dim] + b_shape[concat_dim].
Fields§
§a_shape: [i32; N]Shape of the first input.
b_shape: [i32; N]Shape of the second input.
concat_dim: u8Axis to concatenate along. Must satisfy 0 <= concat_dim < N.
element: ElementKindElement type.
Implementations§
Source§impl<const N: usize> ConcatDescriptor<N>
impl<const N: usize> ConcatDescriptor<N>
Sourcepub fn output_shape(&self) -> [i32; N]
pub fn output_shape(&self) -> [i32; N]
Compute the output shape (a_shape with [concat_dim] summed).
Trait Implementations§
Source§impl<const N: usize> Clone for ConcatDescriptor<N>
impl<const N: usize> Clone for ConcatDescriptor<N>
Source§fn clone(&self) -> ConcatDescriptor<N>
fn clone(&self) -> ConcatDescriptor<N>
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 moreimpl<const N: usize> Copy for ConcatDescriptor<N>
Auto Trait Implementations§
impl<const N: usize> Freeze for ConcatDescriptor<N>
impl<const N: usize> RefUnwindSafe for ConcatDescriptor<N>
impl<const N: usize> Send for ConcatDescriptor<N>
impl<const N: usize> Sync for ConcatDescriptor<N>
impl<const N: usize> Unpin for ConcatDescriptor<N>
impl<const N: usize> UnsafeUnpin for ConcatDescriptor<N>
impl<const N: usize> UnwindSafe for ConcatDescriptor<N>
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