pub struct StackBackward {
pub count: usize,
pub each_shape: Vec<usize>,
pub versions: Vec<VersionSnapshot>,
}Expand description
Backward for stack([t0, t1, ...], axis=0).
∂L/∂t_i = slice(∂L/∂output, i) along axis 0.
Fields§
§count: usizeNumber of tensors that were stacked.
each_shape: Vec<usize>Shape of each individual tensor (all must match).
versions: Vec<VersionSnapshot>Version snapshots for each input.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for StackBackward
impl !RefUnwindSafe for StackBackward
impl Send for StackBackward
impl Sync for StackBackward
impl Unpin for StackBackward
impl UnsafeUnpin for StackBackward
impl !UnwindSafe for StackBackward
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