softcap
spark_
model
1.0.0-beta-preview
In spark_
model::
kimi_
k3
spark_model
::
kimi_k3
Function
softcap
Copy item path
Source
pub fn softcap(x:
f32
, beta:
f32
) ->
f32
Expand description
Smooth cap.
beta
must be finite and non-zero.