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 2018/01/04 16:27:43 UTC

[GitHub] mwbyeon commented on issue #9308: batch size in inference

mwbyeon commented on issue #9308: batch size in inference
URL: https://github.com/apache/incubator-mxnet/issues/9308#issuecomment-355328275
 
 
   This is an example. 
   
   Fist, Set the shape of input data with batch size. `(batch_size, channel, height, width)`
   https://github.com/apache/incubator-mxnet/blob/master/example/image-classification/predict-cpp/image-classification-predict.cc#L197-L200
   
   Second, Create a model with the shape of input data.
   https://github.com/apache/incubator-mxnet/blob/master/example/image-classification/predict-cpp/image-classification-predict.cc#L209-L218
   
   Third, do forward and get output.
   https://github.com/apache/incubator-mxnet/blob/master/example/image-classification/predict-cpp/image-classification-predict.cc#L248-L267
   

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


With regards,
Apache Git Services