eric-haibin-lin commented on a change in pull request #11325: [MXNET-703] 
TensorRT runtime integration
URL: https://github.com/apache/incubator-mxnet/pull/11325#discussion_r205188069
 
 

 ##########
 File path: src/executor/graph_executor.cc
 ##########
 @@ -1018,20 +1155,37 @@ void GraphExecutor::Init(nnvm::Symbol symbol,
                                 g.GetAttr<StorageTypeVector>("storage_type"));
   }
 
+  if (dmlc::GetEnv("MXNET_USE_TENSORRT", false)) {
 
 Review comment:
   can we lookup the env var once and save it as a local variable like 
https://github.com/apache/incubator-mxnet/blob/master/src/executor/graph_executor.cc#L41?

----------------------------------------------------------------
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