Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

[MXNET-767] Fix flaky test for kl_loss #11963

Merged
merged 2 commits into from
Aug 12, 2018
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion tests/python/unittest/test_loss.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,9 @@ def test_logistic_loss_equal_bce():
assert_almost_equal(loss_binary(data, label).asnumpy(), loss_bce(data, label).asnumpy())
assert_almost_equal(loss_signed(data, 2 * label - 1).asnumpy(), loss_bce(data, label).asnumpy())

@with_seed(1234)
# @anirudhacharya - removing the fixed seed for this test.
# Issue to track - https://github.com/apache/incubator-mxnet/issues/11697
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Feel free to remove those comments and simply link the issue in PR description.

@with_seed()
def test_kl_loss():
N = 20
data = mx.random.uniform(-1, 1, shape=(N, 10))
Expand Down