Skip to main content

apply_updates

Function apply_updates 

Source
pub fn apply_updates<B: Backend, T: Float, P: Tree<B>>(
    params: &P,
    updates: &P,
) -> P
Expand description

params + updates for each leaf (optax.apply_updates).

ยงPanics

Panics if the pytrees differ in structure or a leaf is not of type T.