mxnet icon indicating copy to clipboard operation
mxnet copied to clipboard

can NDArrayIter read data from file?

Open yaguanghu opened this issue 10 years ago • 5 comments

I want do some other classification task with mxnet. But NDArrayIter seems only read data from memory. Cause my data is very large, and cannot load in memory wholy. anybody could tell me how to read large data from file for mxnet input?

yaguanghu avatar Jan 09 '16 10:01 yaguanghu

try numpy.mmap.

piiswrong avatar Jan 09 '16 19:01 piiswrong

numpy memory maps will work, but only if you've saved them as memory maps before hand.

jmschrei avatar Jan 09 '16 19:01 jmschrei

@jmschrei Yes, depending on your data format, you may want CVSIter.

piiswrong avatar Jan 09 '16 20:01 piiswrong

oh,yes. CSVIter solves my problem. thanks

yaguanghu avatar Jan 11 '16 04:01 yaguanghu

.

mcxkarakoc avatar May 10 '17 15:05 mcxkarakoc