mwbyeon commented on issue #9308: batch size in inference URL: https://github.com/apache/incubator-mxnet/issues/9308#issuecomment-355328275 This is an example. 1. 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 2. 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 3. 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
