anirudh2290 commented on a change in pull request #16476: added large tensor support for add_n and tests for more ops URL: https://github.com/apache/incubator-mxnet/pull/16476#discussion_r335781266
########## File path: tests/nightly/test_large_array.py ########## @@ -1199,6 +1200,57 @@ def test_full(): assert a[-1][-1] == 3 +def test_load_save(): + x = create_2d_tensor(SMALL_Y, LARGE_X) + nd.save('large_tensor', [x]) + y = nd.load('large_tensor') + y = y[0] + assert x[0][0] == y[0][0] + assert x[-1][-1]== y[-1][-1] + os.remove('large_tensor') Review comment: just create a directory in tmp using mkdtemp and you dont have to worry about removing. ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services