pub struct BinaryParamBackwardDescriptor<const N: usize> {
pub kind: BinaryKind,
pub shape: [i32; N],
pub element: ElementKind,
pub param: f32,
}Expand description
Descriptor for a parameterized binary backward op. Same shape as the FW descriptor.
Fields§
§kind: BinaryKindWhich forward parameterized binary op this is the backward of.
shape: [i32; N]Tensor shape (shared by dy / da / db).
element: ElementKindElement type.
param: f32Op-specific scalar parameter; same semantics as the FW
descriptor’s param field.
Trait Implementations§
Source§impl<const N: usize> Clone for BinaryParamBackwardDescriptor<N>
impl<const N: usize> Clone for BinaryParamBackwardDescriptor<N>
Source§fn clone(&self) -> BinaryParamBackwardDescriptor<N>
fn clone(&self) -> BinaryParamBackwardDescriptor<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 BinaryParamBackwardDescriptor<N>
Auto Trait Implementations§
impl<const N: usize> Freeze for BinaryParamBackwardDescriptor<N>
impl<const N: usize> RefUnwindSafe for BinaryParamBackwardDescriptor<N>
impl<const N: usize> Send for BinaryParamBackwardDescriptor<N>
impl<const N: usize> Sync for BinaryParamBackwardDescriptor<N>
impl<const N: usize> Unpin for BinaryParamBackwardDescriptor<N>
impl<const N: usize> UnsafeUnpin for BinaryParamBackwardDescriptor<N>
impl<const N: usize> UnwindSafe for BinaryParamBackwardDescriptor<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