lichen11 commented on issue #6943: How to read rec files in R URL: https://github.com/apache/incubator-mxnet/issues/6943#issuecomment-330366761 Hi, I have a follow-up question: dataiter <- mx.io.ImageRecordIter( path.imgrec = "./data/cifar/train.rec", path.imglist = "./data/cifar/train.lst", mean.img = "./data/cifar/cifar10_mean.bin", batch.size = 100, data.shape = c(28, 28, 3), rand.crop = TRUE, rand.mirror = TRUE ) dataiter$reset() dataiter$iter.next() # I assign variables labels=dataiter$value()$label mydata = dataiter$value()$data dim(mydata) = 28 28 3 100 # but if I do mydata[,,,1] or labels[1:10] Then an error occurs: "Object of type 'externalptr' is not subsettable. " How do I access the values from mydata and labels? Thanks! ---------------------------------------------------------------- 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: us...@infra.apache.org
With regards, Apache Git Services