Skip to content

Commit

Permalink
[MXNET-774] Flaky test in test_executor.py:test_bind (apache#12016)
Browse files Browse the repository at this point in the history
* fix test bind, remove fixed seed

* add tracking info

* remove tracking info
  • Loading branch information
roywei authored and sandeep-krishnamurthy committed Aug 7, 2018
1 parent ecfef35 commit b27f066
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/python/unittest/test_executor.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def check_bind_with_uniform(uf, gf, dim, sf=None, lshape=None, rshape=None):
assert_almost_equal(rhs_grad.asnumpy(), rhs_grad2, rtol=1e-5, atol=1e-5)


@with_seed(0)
@with_seed()
def test_bind():
def check_bind(disable_bulk_exec):
if disable_bulk_exec:
Expand All @@ -97,11 +97,11 @@ def check_bind(disable_bulk_exec):
dim)

check_bind_with_uniform(lambda x, y: np.maximum(x, y),
lambda g, x, y: (g * (x>y), g * (y>x)),
lambda g, x, y: (g * (x>=y), g * (y>x)),
dim,
sf=mx.symbol.maximum)
check_bind_with_uniform(lambda x, y: np.minimum(x, y),
lambda g, x, y: (g * (x<y), g * (y<x)),
lambda g, x, y: (g * (x<=y), g * (y<x)),
dim,
sf=mx.symbol.minimum)
if disable_bulk_exec:
Expand Down

0 comments on commit b27f066

Please sign in to comment.