Skip to content

Commit

Permalink
Fix a bug in MXNet-TensorRT (apache#18870)
Browse files Browse the repository at this point in the history
Signed-off-by: Serge Panev <[email protected]>
  • Loading branch information
Kh4L committed Aug 7, 2020
1 parent d101c3c commit 708a900
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/operator/subgraph/tensorrt/tensorrt-inl.h
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ class TensorrtProperty : public SubgraphProperty {
TRTParam param;
std::ostringstream params_oss;
for (auto &param_name : new_sym.ListInputNames(nnvm::Symbol::kAll)) {
NDArray *cache;
NDArray *cache = nullptr;
auto it_args = in_args_dict.find(param_name);
if (it_args != in_args_dict.end()) {
cache = it_args->second;
Expand Down

0 comments on commit 708a900

Please sign in to comment.