Skip to content

[GNA] Added fix for export scores#3009

Merged
dorloff merged 1 commit intoopenvinotoolkit:masterfrom
admitriev-gna:feature/ad/fix_numframes_speech_sample
Nov 10, 2020
Merged

[GNA] Added fix for export scores#3009
dorloff merged 1 commit intoopenvinotoolkit:masterfrom
admitriev-gna:feature/ad/fix_numframes_speech_sample

Conversation

@admitriev-gna
Copy link
Copy Markdown
Contributor

No description provided.

@admitriev-gna admitriev-gna added the category: GNA OpenVINO GNA plugin label Nov 6, 2020
@admitriev-gna admitriev-gna self-assigned this Nov 6, 2020
@admitriev-gna admitriev-gna force-pushed the feature/ad/fix_numframes_speech_sample branch from 017bf05 to 1158252 Compare November 6, 2020 13:13
@admitriev-gna admitriev-gna marked this pull request as ready for review November 6, 2020 13:34
@admitriev-gna admitriev-gna requested a review from a team November 6, 2020 13:34
@admitriev-gna admitriev-gna force-pushed the feature/ad/fix_numframes_speech_sample branch from 1158252 to ff49f7d Compare November 6, 2020 14:11
numBytesReferenceScoreThisUtterance(0);
const uint32_t numScoresPerFrame = ptrOutputBlob.size() / batchSize;
auto dims = outputs.empty() ? cOutputInfo.rbegin()->second->getDims() : cOutputInfo[outputs[next_output]]->getDims();
const uint32_t numScoresPerFrame = std::accumulate(std::begin(dims), std::end(dims), (size_t)1, std::multiplies<size_t>());
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please use static_cast for (size_t) instead of C-style cast or even better size_t{1}.

@admitriev-gna admitriev-gna force-pushed the feature/ad/fix_numframes_speech_sample branch 3 times, most recently from ecbed7f to ad8992f Compare November 9, 2020 10:58
@admitriev-gna admitriev-gna force-pushed the feature/ad/fix_numframes_speech_sample branch from ad8992f to 32a7bc3 Compare November 9, 2020 12:46
@dorloff dorloff merged commit 12bb8ab into openvinotoolkit:master Nov 10, 2020
mryzhov pushed a commit to mryzhov/openvino that referenced this pull request Dec 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

category: GNA OpenVINO GNA plugin

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants