Skip to main content

ClikaRT::ops::softcap_logits

function

softcap_logits()

Tensor softcap_logits(Tensor x, ScalarOrTensor cap)

Fused logit soft-cap: cap * tanh(x / cap) (true division), elementwise. A number cap must be > 0 (0 or negative is rejected). A tensor cap broadcasts against x and every element must be non-zero; that precondition is the caller's contract and is not runtime-checked.

Declared in ClikaRT/compute/ops.h, line 5292