You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by GitBox <gi...@apache.org> on 2019/01/15 20:11:13 UTC

[GitHub] larroy commented on a change in pull request #13311: [MXNET-703] Minor refactor of TensorRT code

larroy commented on a change in pull request #13311: [MXNET-703] Minor refactor of TensorRT code
URL: https://github.com/apache/incubator-mxnet/pull/13311#discussion_r248045566
 
 

 ##########
 File path: src/executor/trt_graph_executor.cc
 ##########
 @@ -188,7 +187,7 @@ void TrtGraphExecutor::InitArguments(const nnvm::IndexedGraph& idx,
     const uint32_t eid = idx.entry_id(nid, 0);
     const TShape& inferred_shape = inferred_shapes[eid];
     const int inferred_dtype = inferred_dtypes[eid];
-    const NDArrayStorageType inferred_stype = (NDArrayStorageType) inferred_stypes[eid];
+    const auto inferred_stype = (NDArrayStorageType) inferred_stypes[eid];
 
 Review comment:
   prefer static_cast? 

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services