Commit
·
20e8f6c
1
Parent(s):
882f994
Update modeling_glm.py
Browse files- modeling_glm.py +1 -5
modeling_glm.py
CHANGED
@@ -21,11 +21,7 @@ class CounterModel(PreTrainedModel):
|
|
21 |
def forward(self, x,**kwargs):
|
22 |
x = self.weight * x + self.bias
|
23 |
logits = self.linear(x)
|
24 |
-
return
|
25 |
-
last_hidden_states=None,
|
26 |
-
logits=x,
|
27 |
-
mems=None,
|
28 |
-
)
|
29 |
|
30 |
if __name__ == '__main__':
|
31 |
# import configuration_glm
|
|
|
21 |
def forward(self, x,**kwargs):
|
22 |
x = self.weight * x + self.bias
|
23 |
logits = self.linear(x)
|
24 |
+
return logits
|
|
|
|
|
|
|
|
|
25 |
|
26 |
if __name__ == '__main__':
|
27 |
# import configuration_glm
|