Function tensorflow::eager::raw_ops::apply_momentum
source · pub fn apply_momentum<'a, T0: ToTensorHandle<'a>, T1: ToTensorHandle<'a>, T2: ToTensorHandle<'a>, T3: ToTensorHandle<'a>, T4: ToTensorHandle<'a>>(
ctx: &'a Context,
var: &T0,
accum: &T1,
lr: &T2,
grad: &T3,
momentum: &T4
) -> Result<TensorHandle<'a>>
Expand description
Shorthand for ApplyMomentum::new().call(&ctx, &var, &accum, &lr, &grad, &momentum)
.
See : https://www.tensorflow.org/api_docs/python/tf/raw_ops/ApplyMomentum