accumulate

fun <T : DType, V> GradState<T, V>.accumulate(next: Tensor<T, V>)(source)

Accumulate a gradient tensor onto this state.