MCPcopy Create free account
hub / github.com/TencentARC/MotionCtrl / init_

Function init_

lvdm/common.py:77–81  ·  view source on GitHub ↗
(tensor)

Source from the content-addressed store, hash-verified

75 return shape_str
76
77def init_(tensor):
78 dim = tensor.shape[-1]
79 std = 1 / math.sqrt(dim)
80 tensor.uniform_(-std, std)
81 return tensor
82
83#import deepspeed
84#ckpt = deepspeed.checkpointing.checkpoint

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected