[][src]Trait auto_diff::op::Op

pub trait Op {
    fn get_name(&self) -> &str;
fn apply(
        &mut self,
        input: &Vec<Rc<RefCell<Tensor>>>,
        output: &mut Vec<Rc<RefCell<Tensor>>>
    );
fn grad(&self, input: u32, output: u32); }

Required methods

fn get_name(&self) -> &str

fn apply(
    &mut self,
    input: &Vec<Rc<RefCell<Tensor>>>,
    output: &mut Vec<Rc<RefCell<Tensor>>>
)

fn grad(&self, input: u32, output: u32)

Loading content...

Implementors

impl Op for Linear[src]

impl Op for add[src]

impl Op for div[src]

impl Op for mul[src]

impl Op for sub[src]

Loading content...