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

Flaky randint large vector  #16172

Open
Open
@ChaiBapchya

Description

@ChaiBapchya

test_large_vector.test_ndarray_random_randint fails the assertion

assert (a >= low).all()  and (a < high).all()

because only 1 value in the entire 4.3bn vector is outside the bounds (>= low and <high)
at that index, garbage value seems to be assigned

Tried it multiple times, failed for following seeds
For seed MXNET_TEST_SEED=278341920

(Pdb) p np.where(a<low)
(array([2641572060]),)
(Pdb) p  np.where(a>=high)
(array([], dtype=int64),)
(Pdb) p a[2641572060]
-4012640295

For seed MXNET_TEST_SEED=65322548

(Pdb) p np.where(a<low) 
(array([3303987565]),) 
(Pdb) p np.where(a>=high) 
(array([], dtype=int64),) 
(Pdb) p a[3303987565] 
-2345151068

MXNET_TEST_SEED=180664123

(Pdb) p np.where(a<low)
(array([4298679960]),)
(Pdb) p a[4298679960]
-3002281203
(Pdb) p np.where(a>=high)
(array([], dtype=int64),)

Built with USE_INT64_TENSOR_SIZE=ON
Test with

$ MXNET_TEST_COUNT=1 nosetests --logging-level=DEBUG --verbose -s tests/nightly/test_large_vector.py:test_ndarray_random_randint

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions