Trait rai_core::GenericValue
source · pub trait GenericValue<Kind, Tensors, Gradient> {
// Required methods
fn gv_tensors(&self) -> Tensors;
fn gv_grad(tensors: &Tensors, grad_map: &HashMap<usize, Tensor>) -> Gradient;
fn gv_grad_map(
tensors: &Tensors,
grad: Gradient,
out: &mut HashMap<usize, Tensor>
);
}
Required Methods§
fn gv_tensors(&self) -> Tensors
fn gv_grad(tensors: &Tensors, grad_map: &HashMap<usize, Tensor>) -> Gradient
fn gv_grad_map( tensors: &Tensors, grad: Gradient, out: &mut HashMap<usize, Tensor> )
Object Safety§
This trait is not object safe.