cookingbear opened a new issue #9317: why's the function asnumpy() so slow?
URL: https://github.com/apache/incubator-mxnet/issues/9317
 
 
   I tried the speech_recognition example but found out that the last step 
below(pred = pred.asnumpy()) slow down the process. why's that?
   
   <pre>
   `def update(self, labels, preds):
        check_label_shapes(labels, preds)
           if self.is_logging:
               log = LogUtil().getlogger()
               labelUtil = LabelUtil.getInstance()
           self.batch_loss = 0.
           log.info(preds.shape)
           for label, pred in zip(labels, preds):
               label = label.asnumpy()
               pred = pred.asnumpy()
   `
   </pre>

----------------------------------------------------------------
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