MCPcopy Create free account
hub / github.com/THUDM/GLM / forward

Method forward

mpu/tests/commons.py:29–30  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

27 super(IdentityLayer, self).__init__()
28 self.weight = torch.nn.Parameter(scale * torch.randn(size))
29 def forward(self):
30 return self.weight
31
32
33def set_random_seed(seed):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected