momentumUpdated

fun DTensor.momentumUpdated(new: DTensor, momentum: Float): DTensor

Returns the current (this) tensor updated by the new tensor (new) scaled by momentum


fun Float.momentumUpdated(new: Float, momentum: Float): Float

Returns the current (this) value updated by the new value (new) scaled by momentum