std_mean(x: Tensor, dim: int | Sequence[int] | None = None, correction: int = 1, keepdim: bool = False)Return (std, mean) along dim in a single call.
Fused convenience over lucid.std + lucid.mean — the
engine reduction still scans x twice, but the call site is
shorter and the two outputs share an explicit correction /
keepdim contract.
Parameters
Input.
dimint, sequence of int, or None= NoneAxis or axes to reduce.
None (default) reduces over every
axis to a scalar pair.correctionint= 1Bessel correction passed to
lucid.std. 1 is the
unbiased sample std (default); 0 gives the biased
population std.keepdimbool= FalseRetain the reduced axes as size-1 dimensions. Default
False.Returns
tuple of Tensor(std, mean) — same shape relationship as
lucid.std / lucid.mean would produce
individually.
See Also
var_mean—variance + mean variant.