Skip to content

Commit

Permalink
Remove platform checks when the backend is present. (triton-inference…
Browse files Browse the repository at this point in the history
…-server#3118)

* Removed platform checks when the backend is present.

* Added explanation of why platform is not checked when backend is provided.

Co-authored-by: dyastremsky@nvidia.com <dyastremsky@dyastremsky-dt.dyn.nvidia.com>
  • Loading branch information
dyastremsky and dyastremsky@nvidia.com authored Jul 15, 2021
1 parent 1328939 commit a0710c5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/core/model_config_utils.cc
Original file line number Diff line number Diff line change
Expand Up @@ -998,7 +998,10 @@ ValidateModelConfig(
"'max_batch_size' must be non-negative value for " + config.name());
}

if (!config.platform().empty()) {
// If backend is empty, validate the platform. Otherwise, the platform
// validation should be performed by the backend, as Triton may not know
// about the backend's requirements.
if (!config.platform().empty() && config.backend().empty()) {
if (!expected_platform.empty() &&
(config.platform() != expected_platform)) {
return Status(
Expand Down

0 comments on commit a0710c5

Please sign in to comment.