torch.nn.SoftplusOptions
export interface SoftplusOptions {
/** Controls sharpness; larger β → sharper (like ReLU) (default: 1) */
beta?: number;
/** Threshold above which linear approximation is used for numerical stability (default: 20) */
threshold?: number;
}beta(number)optional- – Controls sharpness; larger β → sharper (like ReLU) (default: 1)
threshold(number)optional- – Threshold above which linear approximation is used for numerical stability (default: 20)
Options for Softplus module