Skip to main content

additive_merge

Function additive_merge 

Source
pub fn additive_merge(
    existing: &Tensor,
    new: &Tensor,
    weight: f64,
) -> Result<Tensor, Error>
Expand description

Additive merge: result = (1-weight) * existing + weight * new