Skip to content

[GNA] Import/Export memory layer name#3252

Merged
dorloff merged 4 commits intoopenvinotoolkit:masterfrom
admitriev-gna:feature/ad/export_memory_layer
Feb 24, 2021
Merged

[GNA] Import/Export memory layer name#3252
dorloff merged 4 commits intoopenvinotoolkit:masterfrom
admitriev-gna:feature/ad/export_memory_layer

Conversation

@admitriev-gna
Copy link
Copy Markdown
Contributor

No description provided.

@admitriev-gna admitriev-gna added the category: GNA OpenVINO GNA plugin label Nov 20, 2020
@admitriev-gna admitriev-gna requested review from a team November 20, 2020 10:08
@admitriev-gna admitriev-gna self-assigned this Nov 20, 2020
@openvino-pushbot openvino-pushbot added the category: IE Tests OpenVINO Test: plugins and common label Nov 20, 2020
for (auto && state : states) {
writeBits(offsetFromBase(state.first), os);
writeBits(state.second, os);
void* gna_ptr;
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.

always initialize variables

@admitriev-gna admitriev-gna force-pushed the feature/ad/export_memory_layer branch from 9f5d28d to 087b6a2 Compare November 23, 2020 11:24
readBits(segmentSz, is);
uint32_t nameSize = 0;
readNBits<32>(nameSize, is);
// std::string inName("", nameSize);
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.

Just remove it

writeBits(state.second, os);
void* gna_ptr = nullptr;
uint32_t reserved_size = 0;
std::string name = "noname";
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.

There is no point in initializing it with "noname" as it will be overwritten in the next step.

@admitriev-gna admitriev-gna force-pushed the feature/ad/export_memory_layer branch 3 times, most recently from 23ef49b to 1166b6a Compare November 23, 2020 20:27
@admitriev-gna admitriev-gna force-pushed the feature/ad/export_memory_layer branch 3 times, most recently from 755bc2b to e5aa056 Compare February 19, 2021 11:14
writeBits(offsetFromBase(state.first), os);
writeBits(state.second, os);
void* gna_ptr = nullptr;
uint32_t reserved_size;
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 initialize all variables i.e. reserved_size, scale_factor

}
} else {
readOffset(pSegment, basePointer, is);
uint32_t segmentSz;
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 initialize all variables except the ones with constructors i.e. strings

::testing::ValuesIn(importConfigs)),
ImportMemoryTest::getTestCaseName);

} // namespace LayerTestsDefinitions
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 check if it works for GNA_SW_FP32

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

No, It's not working for GNA_SW_FP32

Added test

Added fix

[GNA] Added import/export names of memory layer

Added fix

test build

centOS fix
@admitriev-gna admitriev-gna force-pushed the feature/ad/export_memory_layer branch from e5aa056 to 1cb62ad Compare February 20, 2021 08:36
@admitriev-gna admitriev-gna requested a review from a team as a code owner February 20, 2021 08:36
@admitriev-gna admitriev-gna force-pushed the feature/ad/export_memory_layer branch 3 times, most recently from 493a791 to 0044ed0 Compare February 20, 2021 09:27
@admitriev-gna admitriev-gna removed the request for review from a team February 20, 2021 09:28
@admitriev-gna admitriev-gna force-pushed the feature/ad/export_memory_layer branch from 0044ed0 to 9c7e65d Compare February 20, 2021 10:54
@dorloff dorloff merged commit c2f6077 into openvinotoolkit:master Feb 24, 2021
tadamowicz pushed a commit to tadamowicz/openvino that referenced this pull request Aug 30, 2023
* [GNA] Added import/export names of memory layer

Added test

Added fix

[GNA] Added import/export names of memory layer

Added fix

test build

centOS fix

* Added fix version

* [GNA] Added export/import scale factor for memory layer

* [GNA] Fix comments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

category: GNA OpenVINO GNA plugin category: IE Tests OpenVINO Test: plugins and common

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants