pub struct WhereBackwardDescriptor<const N: usize> {
pub shape: [i32; N],
pub element: ElementKind,
}Expand description
Descriptor for a where_backward op.
shape is the shared shape of dy / da / db. element is the
value dtype — cond is always u8. element must match the type
parameter T of the containing plan at select time.
Fields§
§shape: [i32; N]Tensor shape (shared by cond / dy / da / db).
element: ElementKindValue element type (dy / da / db dtype; cond is always u8).
Trait Implementations§
Source§impl<const N: usize> Clone for WhereBackwardDescriptor<N>
impl<const N: usize> Clone for WhereBackwardDescriptor<N>
Source§fn clone(&self) -> WhereBackwardDescriptor<N>
fn clone(&self) -> WhereBackwardDescriptor<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 WhereBackwardDescriptor<N>
Auto Trait Implementations§
impl<const N: usize> Freeze for WhereBackwardDescriptor<N>
impl<const N: usize> RefUnwindSafe for WhereBackwardDescriptor<N>
impl<const N: usize> Send for WhereBackwardDescriptor<N>
impl<const N: usize> Sync for WhereBackwardDescriptor<N>
impl<const N: usize> Unpin for WhereBackwardDescriptor<N>
impl<const N: usize> UnsafeUnpin for WhereBackwardDescriptor<N>
impl<const N: usize> UnwindSafe for WhereBackwardDescriptor<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