pub struct JacobianBytes {
pub bytes: Vec<u8>,
pub output_size: usize,
pub wrt_size: usize,
pub dtype: DType,
}Expand description
One Jacobian per primal output of the original forward graph.
Fields§
§bytes: Vec<u8>Flat row-major [output_size, wrt_size] matrix.
output_size: usizeNumber of elements in the primal output (= rows).
wrt_size: usizeNumber of elements in the wrt input (= columns).
dtype: DTypeElement dtype of bytes.
Implementations§
Trait Implementations§
Source§impl Clone for JacobianBytes
impl Clone for JacobianBytes
Source§fn clone(&self) -> JacobianBytes
fn clone(&self) -> JacobianBytes
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 moreAuto Trait Implementations§
impl Freeze for JacobianBytes
impl RefUnwindSafe for JacobianBytes
impl Send for JacobianBytes
impl Sync for JacobianBytes
impl Unpin for JacobianBytes
impl UnsafeUnpin for JacobianBytes
impl UnwindSafe for JacobianBytes
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more