haohuanw commented on a change in pull request #15335: enable TensorRT
integration with cpp api
URL: https://github.com/apache/incubator-mxnet/pull/15335#discussion_r298887664
##########
File path: cpp-package/example/inference/inception_inference.cpp
##########
@@ -62,6 +63,13 @@ class Predictor {
private:
void LoadModel(const std::string& model_json_file);
void LoadParameters(const std::string& model_parameters_file);
+ void SplitParamMap(const std::map<std::string, NDArray>& paramMap,
+ std::map<std::string, NDArray>& argParamInTargetContext, // NOLINT(*)
+ std::map<std::string, NDArray>& auxParamInTargetContext, // NOLINT(*)
+ Context targetContext);
+ void ConvertParamMapToTargetContext(const std::map<std::string, NDArray>&
paramMap,
+ std::map<std::string, NDArray>& paramMapInTargetContext, // NOLINT(*)
+ Context targetContext);
Review comment:
sure, will pass in a pointer instead.
----------------------------------------------------------------
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