[IE] fix printing dynamic signatures (#7620)

* [IE] fix printing dynamic signatures

* fixed printing scalars output dimensions as well

* turned off printing dynamic signatures
This commit is contained in:
Pavel Esir 2021-09-24 18:50:35 +03:00 committed by GitHub
parent c0d4fe8e7e
commit 572ab040dc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -420,13 +420,12 @@ void CNNNetworkNGraphImpl::reshape(const std::map<std::string, ngraph::PartialSh
std::stringstream shape_representation;
for (const auto& input : op->input_values()) {
bool first = true;
shape_representation << "{";
for (const auto& dimension : input.get_partial_shape()) {
if (!first) {
if (!first)
shape_representation << ",";
} else {
shape_representation << "{";
first = false;
}
first = false;
if (obfuscate)
shape_representation << (dimension.is_dynamic() ? "D" : "S");
else
@ -437,13 +436,12 @@ void CNNNetworkNGraphImpl::reshape(const std::map<std::string, ngraph::PartialSh
shape_representation << "-> ";
for (const auto& output: op->outputs()) {
bool first = true;
shape_representation << "{";
for (const auto& dimension : output.get_partial_shape()) {
if (!first) {
if (!first)
shape_representation << ",";
} else {
shape_representation << "{";
first = false;
}
first = false;
if (obfuscate)
shape_representation << (dimension.is_dynamic() ? "D" : "S");
else