pub struct LpNormalizationConfig {
pub axis: usize,
pub p: i64,
}Expand description
Configuration for LpNormalization.
Fields§
§axis: usizeAxis along which to compute the p-norm. Resolved to a positive index.
Defaults to the last axis (rank - 1) per the ONNX spec.
p: i64Order of the norm. ONNX restricts this to 1 (L1) or 2 (L2).
Implementations§
Trait Implementations§
Source§impl Clone for LpNormalizationConfig
impl Clone for LpNormalizationConfig
Auto Trait Implementations§
impl Freeze for LpNormalizationConfig
impl RefUnwindSafe for LpNormalizationConfig
impl Send for LpNormalizationConfig
impl Sync for LpNormalizationConfig
impl Unpin for LpNormalizationConfig
impl UnsafeUnpin for LpNormalizationConfig
impl UnwindSafe for LpNormalizationConfig
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