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 10, 2020
1 parent 8d0c8f0 commit dd11df7
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 @@ -321,7 +321,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 dd11df7

Please sign in to comment.