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


With regards,
Apache Git Services

Reply via email to