MCPcopy Create free account
hub / github.com/alinlab/SelfPatch / trunc_normal_

Function trunc_normal_

utils.py:528–530  ·  view source on GitHub ↗
(tensor, mean=0., std=1., a=-2., b=2.)

Source from the content-addressed store, hash-verified

526
527
528def trunc_normal_(tensor, mean=0., std=1., a=-2., b=2.):
529 # type: (Tensor, float, float, float, float) -> Tensor
530 return _no_grad_trunc_normal_(tensor, mean, std, a, b)
531
532
533class LARS(torch.optim.Optimizer):

Callers 6

__init__Method · 0.90
_init_weightsMethod · 0.90
__init__Method · 0.90
_init_weightsMethod · 0.90
_init_weightsMethod · 0.90
_init_weightsMethod · 0.85

Calls 1

_no_grad_trunc_normal_Function · 0.85

Tested by

no test coverage detected