Skip to content

Commit

Permalink
Use different instance name unification method
Browse files Browse the repository at this point in the history
  • Loading branch information
kthui committed Jul 7, 2023
1 parent 49e1f5a commit af88121
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/backend_model_instance.cc
Original file line number Diff line number Diff line change
Expand Up @@ -219,8 +219,7 @@ TritonModelInstance::SetInstances(
secondary_device.device_id());
}
for (int32_t c = 0; c < group.count(); ++c) {
std::string instance_name{
c > 0 ? group.name() + "_" + std::to_string(c) : group.name()};
std::string instance_name{group.name() + "_" + std::to_string(c)};
const bool passive = group.passive();
std::vector<std::tuple<
std::string, TRITONSERVER_InstanceGroupKind, int32_t,
Expand Down

0 comments on commit af88121

Please sign in to comment.