pub struct PReluArgs<'a, T: Element, const N: usize> {
pub x: TensorRef<'a, T, N>,
pub weight: TensorRef<'a, T, 1>,
pub y: TensorMut<'a, T, N>,
}Expand description
Args bundle for a PReLU FW launch.
Fields§
§x: TensorRef<'a, T, N>Input tensor.
weight: TensorRef<'a, T, 1>Weight tensor — shape [C] (per-channel) or [1] (scalar).
y: TensorMut<'a, T, N>Output tensor.
Auto Trait Implementations§
impl<'a, T, const N: usize> !UnwindSafe for PReluArgs<'a, T, N>
impl<'a, T, const N: usize> Freeze for PReluArgs<'a, T, N>
impl<'a, T, const N: usize> RefUnwindSafe for PReluArgs<'a, T, N>where
T: RefUnwindSafe,
impl<'a, T, const N: usize> Send for PReluArgs<'a, T, N>
impl<'a, T, const N: usize> Sync for PReluArgs<'a, T, N>where
T: Sync,
impl<'a, T, const N: usize> Unpin for PReluArgs<'a, T, N>
impl<'a, T, const N: usize> UnsafeUnpin for PReluArgs<'a, T, 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