Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Commit

Permalink
Handle node with no defined input
Browse files Browse the repository at this point in the history
Signed-off-by: Serge Panev <spanev@nvidia.com>
  • Loading branch information
Kh4L committed Jun 29, 2020
1 parent 6944428 commit 6d4dae1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/operator/subgraph/tensorrt/tensorrt-inl.h
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,9 @@ class TensorrtProperty : public SubgraphProperty {
}
}
auto tensorrt_params_names = params_oss.str();
tensorrt_params_names.pop_back();
if (!tensorrt_params_names.empty()) {
tensorrt_params_names.pop_back();
}
n->attrs.parsed = param;
n->attrs.dict["subgraph_params_names"] = tensorrt_params_names;
return n;
Expand Down

0 comments on commit 6d4dae1

Please sign in to comment.