Skip to content

Commit

Permalink
pass ci
Browse files Browse the repository at this point in the history
  • Loading branch information
L-M-Sherlock committed Oct 27, 2024
1 parent b14264b commit cb4ed78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/model_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ def test_loss_and_grad(self):
stabilities = outputs[seq_lens - 1, torch.arange(real_batch_size), 0]
retentions = power_forgetting_curve(delta_ts, stabilities)
loss = loss_fn(retentions, labels).sum()
assert round(loss.item(), 4) == 4.176347
assert round(loss.item(), 6) == 4.176347
loss.backward()
assert torch.allclose(
model.w.grad,
Expand Down

0 comments on commit cb4ed78

Please sign in to comment.