Skip to content

Commit ba896c9

Browse files
committed
update: test_ldam_loss
1 parent d1aedaa commit ba896c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_loss_functions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ def test_ldam_loss():
273273
y_true = torch.LongTensor([3, 0])
274274
loss = criterion(y_pred, y_true)
275275

276-
assert loss.item() == pytest.approx(0.5767049, abs=1e-6)
276+
assert loss.item() == pytest.approx(4.5767049, abs=1e-6)
277277

278278

279279
def test_bi_tempered_log_loss_func():

0 commit comments

Comments
 (0)