sandeep-krishnamurthy commented on a change in pull request #15245: FP16
Support for C Predict API
URL: https://github.com/apache/incubator-mxnet/pull/15245#discussion_r299709898
##########
File path: src/c_api/c_predict_api.cc
##########
@@ -444,6 +538,20 @@ int MXPredGetOutputShape(PredictorHandle handle,
API_END();
}
+int MXPredGetOutputType(PredictorHandle handle,
+ mx_uint out_index,
+ int* out_dtype) {
+ MXAPIPredictor* p = static_cast<MXAPIPredictor*>(handle);
+ API_BEGIN();
+ CHECK_LT(out_index, p->out_arrays.size())
+ << "Index exceed number of outputs";
Review comment:
nit: Can we make the message more easy to comprehend?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to 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