benchmark_app incorrectly fills in the inputs for cached models (#7535)

This commit is contained in:
Vladislav Volkov 2021-09-24 11:07:14 +03:00 committed by GitHub
parent 002e68b535
commit f8618b75a9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -391,6 +391,12 @@ int main(int argc, char* argv[]) {
if (statistics) if (statistics)
statistics->addParameters(StatisticsReport::Category::EXECUTION_RESULTS, statistics->addParameters(StatisticsReport::Category::EXECUTION_RESULTS,
{{"load network time (ms)", duration_ms}}); {{"load network time (ms)", duration_ms}});
app_inputs_info = getInputsInfo<InputInfo::CPtr>(FLAGS_shape,
FLAGS_layout,
FLAGS_b,
FLAGS_iscale,
FLAGS_imean,
exeNetwork.GetInputsInfo());
if (batchSize == 0) { if (batchSize == 0) {
batchSize = 1; batchSize = 1;
} }