MCPcopy Create free account
hub / github.com/TrustAGI-Lab/MTGODE / forward

Method forward

layer.py:337–341  ·  view source on GitHub ↗
(self, input, idx)

Source from the content-addressed store, hash-verified

335 init.zeros_(self.bias)
336
337 def forward(self, input, idx):
338 if self.elementwise_affine:
339 return F.layer_norm(input, tuple(input.shape[1:]), self.weight[:,idx,:], self.bias[:,idx,:], self.eps)
340 else:
341 return F.layer_norm(input, tuple(input.shape[1:]), self.weight, self.bias, self.eps)
342
343 def extra_repr(self):
344 return '{normalized_shape}, eps={eps}, ' \

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected