[Gna] [coverity]fixes (#17122)
* [Coverity] Fix: CID 1502468 - Not restoring ostream format
* [Coverity] Fix: CID 1502524 - Dereference null return value
* [Coverity] Fix: CID 1509007 - Uncaught exception
* [Coverity] Fix: CID 1505779, 1505781, 1505783 and 1505786 - Dereference null return value
* [Coverity] Fix: CID 1502503 - Using invalid iterator
* Revert "[Coverity] Fix: CID 1502524 - Dereference null return value"
This reverts commit b605a493ae
.
This commit is contained in:
parent
f8522a6ea1
commit
86ed1e93b6
@ -722,6 +722,7 @@ void PrintTensors(std::ofstream& out, T tensors) {
|
||||
}
|
||||
|
||||
void AMIntelDNN::PrintOffset(std::ofstream& out, const std::string& type, void* ptr) {
|
||||
auto flags = out.flags();
|
||||
const auto queue = memory->getQueue(ptr);
|
||||
std::string typeOfRegion = "UNKNOWN_QUEUE";
|
||||
auto offset = std::numeric_limits<uint32_t>::max();
|
||||
@ -732,6 +733,7 @@ void AMIntelDNN::PrintOffset(std::ofstream& out, const std::string& type, void*
|
||||
out << "<memory_region_type> " << typeOfRegion << "\n";
|
||||
out << "<" << type << "_address> "
|
||||
<< "0x" << std::setfill('0') << std::setw(8) << std::hex << offset << "\n";
|
||||
out.flags(flags);
|
||||
}
|
||||
|
||||
void AMIntelDNN::WriteDnnText(const char* filename, intel_dnn_number_type_t logging_precision) {
|
||||
|
@ -352,7 +352,7 @@ public:
|
||||
bool is_gather() const noexcept {
|
||||
return isOfType("gather");
|
||||
}
|
||||
bool is_fq_non_sensitive() const noexcept {
|
||||
bool is_fq_non_sensitive() const {
|
||||
return isPermute() || is_gather() || isNonFunctional();
|
||||
}
|
||||
bool isPooling() const noexcept {
|
||||
|
@ -73,7 +73,7 @@ static void ApplyScaleFactorsPerInput(const std::map<std::string, float>& per_in
|
||||
return sf.first == input_desc.name || input_desc.tensor_names.count(sf.first);
|
||||
});
|
||||
|
||||
if (input_it == inputs.end()) {
|
||||
if (input_it == inputs.Get().end()) {
|
||||
IE_THROW() << "Given scale factor for invalid input: " << sf.first;
|
||||
}
|
||||
::log::warning() << "Using input scale factor: " << sf.second
|
||||
|
Loading…
Reference in New Issue
Block a user