Expand description
Elementwise natural log forward + backward.
Used by reverse-mode autograd in downstream crates (hf2q ADR-020 Track 1: log_softmax + KL-div composition).
Statics§
Functions§
- dispatch_
log_ backward_ f32 - Encode
dx[i] = dy[i] / x[i](the backward pass for elementwise log).xis the FORWARD INPUT, not the forward output. - dispatch_
log_ f32 - Encode
output[i] = log(input[i])for f32 input. - register