You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by GitBox <gi...@apache.org> on 2018/06/29 21:08:18 UTC
[GitHub] szha closed pull request #11499: Test for new int64 type in CSVIter
szha closed pull request #11499: Test for new int64 type in CSVIter
URL: https://github.com/apache/incubator-mxnet/pull/11499
This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:
As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):
diff --git a/tests/python/unittest/test_io.py b/tests/python/unittest/test_io.py
index dbd327d429f..4dfa69cc105 100644
--- a/tests/python/unittest/test_io.py
+++ b/tests/python/unittest/test_io.py
@@ -317,6 +317,8 @@ def check_CSVIter_synthetic(dtype='float32'):
entry_str = '1'
if dtype is 'int32':
entry_str = '200000001'
+ if dtype is 'int64':
+ entry_str = '2147483648'
with open(data_path, 'w') as fout:
for i in range(1000):
fout.write(','.join([entry_str for _ in range(8*8)]) + '\n')
@@ -332,7 +334,7 @@ def check_CSVIter_synthetic(dtype='float32'):
assert_almost_equal(data_batch.asnumpy(), expected.asnumpy())
assert data_batch.asnumpy().dtype == expected.asnumpy().dtype
- for dtype in ['int32', 'float32']:
+ for dtype in ['int32', 'int64', 'float32']:
check_CSVIter_synthetic(dtype=dtype)
@unittest.skip("Flaky test: https://github.com/apache/incubator-mxnet/issues/11359")
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services