MCPcopy Create free account
hub / github.com/SooLab/CGFormer / forward

Method forward

bert/modeling_utils.py:827–831  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

825 self.bias = nn.Parameter(torch.zeros(nf))
826
827 def forward(self, x):
828 size_out = x.size()[:-1] + (self.nf,)
829 x = torch.addmm(self.bias, x.view(-1, x.size(-1)), self.weight)
830 x = x.view(*size_out)
831 return x
832
833
834class PoolerStartLogits(nn.Module):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected