cclauss commented on a change in pull request #12137: [MXNET-696] Fix undefined 
name errors
URL: https://github.com/apache/incubator-mxnet/pull/12137#discussion_r210104553
 
 

 ##########
 File path: example/deep-embedded-clustering/model.py
 ##########
 @@ -22,7 +22,7 @@
 import numpy as np
 try:
     import cPickle as pickle
 
 Review comment:
   This is correct usage...  We first try to use __cPickle__ which is compiled 
C code in Python 2 and is nice and fast but if we fail to import that (because 
it is not pip installed on Python 2 or because we are running on Python 3) then 
we use the normal standard library pickle.

----------------------------------------------------------------
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:
[email protected]


With regards,
Apache Git Services

Reply via email to