Skip to content

Commit

Permalink
[GNA] Fixed import of model with several inputs (openvinotoolkit#7277)
Browse files Browse the repository at this point in the history
  • Loading branch information
mryzhov authored and dood-apo committed Aug 24, 2023
1 parent 80de4fb commit 5bd7a66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inference-engine/src/gna_plugin/gna_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1612,7 +1612,7 @@ InferenceEngine::IExecutableNetworkInternal::Ptr GNAPlugin::ImportNetwork(std::i
// If scale factors are defined in configuration we still need to use them instead of imported values,
// for example to change the scale factors for the old models.
if (!config.inputScaleFactors.empty()) {
IE_ASSERT(config.inputScaleFactors.size() == inputsDesc->inputScaleFactors.size());
IE_ASSERT(config.inputScaleFactors.size() <= inputsDesc->inputScaleFactors.size());
for (size_t i = 0; i < config.inputScaleFactors.size(); ++i) {
if (config.inputScaleFactors[i] != GNAPluginNS::kScaleFactorDefault) {
gnalog() << "[Import Network] Using input scale factor defined in configuration for input " << i << std::endl;
Expand Down

0 comments on commit 5bd7a66

Please sign in to comment.