pub struct PReluDescriptor<const N: usize> {
pub input_shape: [i32; N],
pub channel_axis: i8,
pub element: ElementKind,
}Expand description
Descriptor for a PReLU FW op.
channel_axis is the axis index where weight is indexed by the channel
coordinate. Use -1 to signal a single scalar weight (weight.shape == [1]) which is applied to every cell of x.
Fields§
§input_shape: [i32; N]Input tensor shape.
channel_axis: i8Channel axis (where weight indexes); -1 for scalar weight.
element: ElementKindElement type.
Trait Implementations§
Source§impl<const N: usize> Clone for PReluDescriptor<N>
impl<const N: usize> Clone for PReluDescriptor<N>
Source§fn clone(&self) -> PReluDescriptor<N>
fn clone(&self) -> PReluDescriptor<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 PReluDescriptor<N>
Auto Trait Implementations§
impl<const N: usize> Freeze for PReluDescriptor<N>
impl<const N: usize> RefUnwindSafe for PReluDescriptor<N>
impl<const N: usize> Send for PReluDescriptor<N>
impl<const N: usize> Sync for PReluDescriptor<N>
impl<const N: usize> Unpin for PReluDescriptor<N>
impl<const N: usize> UnsafeUnpin for PReluDescriptor<N>
impl<const N: usize> UnwindSafe for PReluDescriptor<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