Struct auto_diff::op::index_slicing::IndexExclude
source · [−]pub struct IndexExclude { /* private fields */ }
Implementations
sourceimpl IndexExclude
impl IndexExclude
pub fn new(dim: usize) -> IndexExclude
Trait Implementations
sourceimpl OpCall for IndexExclude
impl OpCall for IndexExclude
sourceimpl OpTrait for IndexExclude
impl OpTrait for IndexExclude
sourcefn get_input_size(&self) -> usize
fn get_input_size(&self) -> usize
The number of input needs by this op.
sourcefn get_output_size(&self) -> usize
fn get_output_size(&self) -> usize
The number of output produced by this op.
sourcefn grad(&self, input: &[Tensor], output_grad: &[Tensor], input_grad: &[Tensor])
fn grad(&self, input: &[Tensor], output_grad: &[Tensor], input_grad: &[Tensor])
Given the forward input value and backward output_grad, Update weight gradient. return backward input gradeint. Read more
sourcefn get_values(&self) -> Vec<Tensor>
fn get_values(&self) -> Vec<Tensor>
access weight values
fn set_values(&self, _v: &[Tensor])
Auto Trait Implementations
impl !RefUnwindSafe for IndexExclude
impl !Send for IndexExclude
impl !Sync for IndexExclude
impl Unpin for IndexExclude
impl !UnwindSafe for IndexExclude
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more