barry-jin commented on pull request #20029: URL: https://github.com/apache/incubator-mxnet/pull/20029#issuecomment-799600521
> Have you tested this in numpy? The doc says > > > argsArguments, optional > > ``` > > Arrays to save to the file. Since it is not possible for Python to know the names of the arrays outside savez, the arrays will be saved with names “arr_0”, “arr_1”, and so on. These arguments can be any expression. > > ``` > > > > > > kwdsKeyword arguments, optional > > ``` > > Arrays to save to the file. Arrays will be saved in the file with the keyword names. > > ``` > > https://numpy.org/doc/stable/reference/generated/numpy.savez.html For official numpy, it looks like it will merge the input list into one array: ``` >>> import numpy as np >>> x = np.arange(4) >>> y = np.zeros(4) >>> np.savez('dataset.npz', [x, y]) >>> np.load('dataset.npz')['arr_0'] array([[0., 1., 2., 3.], [0., 0., 0., 0.]]) ``` ---------------------------------------------------------------- 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: [email protected]
