Skip to main content

ste_backward

Function ste_backward 

Source
pub fn ste_backward(grad_output: &Tensor) -> Tensor
Expand description

Compute STE backward pass (identity gradient).

In the backward pass, gradients flow through unchanged. This is handled automatically by the tensor operations, but this function is provided for clarity.

§Arguments

  • grad_output - Gradient from the next layer

§Returns

The same gradient (identity function)