MCPcopy Create free account
hub / github.com/ICTMCG/FakeSV / forward

Method forward

code/models/Baselines.py:102–108  ·  view source on GitHub ↗
(self,  **kwargs)

Source from the content-addressed store, hash-verified

100 self.classifier = nn.Linear(fea_dim,2)
101
102 def forward(self, **kwargs):
103 title_inputid = kwargs['title_inputid']
104 title_mask=kwargs['title_mask']
105 fea_text=self.bert(title_inputid,attention_mask=title_mask)[1]
106 fea_text=self.linear_text(fea_text)
107 output = self.classifier(fea_text)
108 return output,fea_text
109
110class bTextCNN(nn.Module):
111 def __init__(self, fea_dim, vocab_size):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected