torch.nn.init.TruncNormalOptions
export interface TruncNormalOptions {
/** Mean of the normal distribution before truncation (default: 0.0) */
mean?: number;
/** Standard deviation of the normal distribution (default: 1.0) */
std?: number;
/** Minimum cutoff value in standard deviations (default: -2.0) */
a?: number;
/** Maximum cutoff value in standard deviations (default: 2.0) */
b?: number;
}mean(number)optional- – Mean of the normal distribution before truncation (default: 0.0)
std(number)optional- – Standard deviation of the normal distribution (default: 1.0)
a(number)optional- – Minimum cutoff value in standard deviations (default: -2.0)
b(number)optional- – Maximum cutoff value in standard deviations (default: 2.0)
Options for trunc_normal_ initialization