cognitivess
commited on
Commit
•
98759b5
1
Parent(s):
763be71
Update cognitivess_model/modeling_cognitivess.py
Browse files
cognitivess_model/modeling_cognitivess.py
CHANGED
@@ -223,7 +223,7 @@ class CognitivessForQuestionAnswering(LlamaPreTrainedModel):
|
|
223 |
end_logits = end_logits.squeeze(-1).contiguous()
|
224 |
|
225 |
loss = None
|
226 |
-
if start_positions is not None and end_positions
|
227 |
if len(start_positions.size()) > 1:
|
228 |
start_positions = start_positions.squeeze(-1)
|
229 |
if len(end_positions.size()) > 1:
|
|
|
223 |
end_logits = end_logits.squeeze(-1).contiguous()
|
224 |
|
225 |
loss = None
|
226 |
+
if start_positions is not None and end_positions is not None:
|
227 |
if len(start_positions.size()) > 1:
|
228 |
start_positions = start_positions.squeeze(-1)
|
229 |
if len(end_positions.size()) > 1:
|