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 2019/04/13 23:18:42 UTC

[GitHub] [incubator-mxnet] wkcn commented on a change in pull request #14659: [WIP][Don't merge] remove pickle in gluon dataloader

wkcn commented on a change in pull request #14659: [WIP][Don't merge] remove pickle in gluon dataloader
URL: https://github.com/apache/incubator-mxnet/pull/14659#discussion_r275135641
 
 

 ##########
 File path: python/mxnet/gluon/data/dataloader.py
 ##########
 @@ -398,9 +398,7 @@ def _worker_fn(samples, batchify_fn, dataset=None):
     # preserving dataset as global variable can save tons of overhead and is safe in new process
     global _worker_dataset
     batch = batchify_fn([_worker_dataset[i] for i in samples])
-    buf = io.BytesIO()
-    ForkingPickler(buf, pickle.HIGHEST_PROTOCOL).dump(batch)
-    return buf.getvalue()
+    return batch
 
 Review comment:
   Yes. I am working on it. I found the performance of PyTorch is faster than that of MXNet, and I am looking for where the difference is.

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services