step

fun step(ctx: ExecutionContext, x: Tensor<T, V>, y: Tensor<out DType, *>): Tensor<T, V>(source)

Perform a single training step: forward, backward, optimizer step, and zero grad.