Removed useless iostream include (#5357)

* Removed useless iostream include

* Fixed samples compilation

* Klockwork fixes for template plugin
This commit is contained in:
Ilya Lavrenov
2021-05-03 17:12:00 +03:00
committed by GitHub
parent 5d8f209df6
commit b47d11e31e
31 changed files with 26 additions and 37 deletions

View File

@@ -14,7 +14,7 @@ NGRAPH_RTTI_DEFINITION(ngraph::pass::AddMeanSubtract, "AddMeanSubtract", 0);
ngraph::pass::AddMeanSubtract::AddMeanSubtract(const MeanMap & inputInfoMap) {
// RUN_ON_FUNCTION_SCOPE(AddMeanSubtract);
auto param = ngraph::pattern::wrap_type<ngraph::opset3::Parameter>();
auto label = ngraph::pattern::wrap_type<ngraph::opset3::Parameter>();
ngraph::matcher_pass_callback callback = [=] (pattern::Matcher& m) {
auto param = std::dynamic_pointer_cast<ngraph::opset3::Parameter>(m.get_match_root());
@@ -42,7 +42,7 @@ ngraph::pass::AddMeanSubtract::AddMeanSubtract(const MeanMap & inputInfoMap) {
};
// Register pattern with Parameter operation as a pattern root node
auto m = std::make_shared<ngraph::pattern::Matcher>(param, "AddMeanSubtract");
auto m = std::make_shared<ngraph::pattern::Matcher>(label, "AddMeanSubtract");
// Register Matcher
register_matcher(m, callback);
}

View File

@@ -14,7 +14,7 @@ NGRAPH_RTTI_DEFINITION(ngraph::pass::AddStdScale, "AddStdScale", 0);
ngraph::pass::AddStdScale::AddStdScale(const ScaleMap& inputInfoMap) {
// RUN_ON_FUNCTION_SCOPE(AddStdScale);
auto param = ngraph::pattern::wrap_type<ngraph::opset3::Parameter>();
auto label = ngraph::pattern::wrap_type<ngraph::opset3::Parameter>();
ngraph::matcher_pass_callback callback = [=] (pattern::Matcher& m) {
auto param = std::dynamic_pointer_cast<ngraph::opset3::Parameter>(m.get_match_root());
@@ -42,7 +42,7 @@ ngraph::pass::AddStdScale::AddStdScale(const ScaleMap& inputInfoMap) {
};
// Register pattern with Parameter operation as a pattern root node
auto m = std::make_shared<ngraph::pattern::Matcher>(param, "AddStdScale");
auto m = std::make_shared<ngraph::pattern::Matcher>(label, "AddStdScale");
// Register Matcher
register_matcher(m, callback);
}

View File

@@ -8,7 +8,6 @@
#include <map>
#include <vector>
#include <set>
#include <iostream>
#include <algorithm>
#include <sstream>
#include <chrono>

View File

@@ -10,6 +10,7 @@
#pragma once
#include <ostream>
#include <map>
#include <memory>
#include <string>

View File

@@ -9,6 +9,7 @@
*/
#pragma once
#include <istream>
#include <map>
#include <memory>
#include <string>

View File

@@ -9,6 +9,7 @@
*/
#pragma once
#include <ostream>
#include <map>
#include <memory>
#include <string>

View File

@@ -9,7 +9,6 @@
*/
#pragma once
#include <iostream>
#include <utility>
#include "ie_allocator.hpp"

View File

@@ -12,3 +12,6 @@
#include "ie_plugin_config.hpp"
#include "ie_compound_blob.h"
#include "ie_core.hpp"
// remove in 2022.1 major release
#include <iostream>

View File

@@ -4,7 +4,6 @@
// clang-format off
#include <algorithm>
#include <iostream>
#include <map>
#include <regex>
#include <samples/common.hpp>

View File

@@ -14,6 +14,7 @@
#include <functional>
#include <inference_engine.hpp>
#include <iomanip>
#include <iostream>
#include <limits>
#include <list>
#include <map>

View File

@@ -7,7 +7,6 @@
#include <string>
#include <map>
#include <vector>
#include <iostream>
#include <cmath>
#include <tuple>
#include <cctype>

View File

@@ -5,6 +5,7 @@
#include <cstdint>
#include <vector>
#include <cmath>
#include <iostream>
#include <set>
#include <string>
#include <algorithm>

View File

@@ -8,7 +8,6 @@
#include <cstdio>
#include <memory.h>
#include <xmmintrin.h>
#include <iostream>
#include <fstream>
#include <sstream>
#include <string>

View File

@@ -3,7 +3,6 @@
//
#include <cstring>
#include <iostream>
#include <gna_plugin_log.hpp>
#include <limits>
#include "backend/gna_types.h"

View File

@@ -5,7 +5,6 @@
#define NOMINMAX
#include <cstdlib>
#include <iostream>
#include <vector>
#include <cstring>
#include <list>

View File

@@ -4,10 +4,10 @@
#include <cstdlib>
#include <cstring>
#include <vector>
#include "threading/ie_parallel_custom_arena.hpp"
#include "ie_system_conf.h"
#include <iostream>
#include <vector>
# define XBYAK_NO_OP_NAMES
# define XBYAK_UNDEF_JNL

View File

@@ -2,7 +2,6 @@
// SPDX-License-Identifier: Apache-2.0
//
#include <dlfcn.h>
#include <iostream>

View File

@@ -4,8 +4,6 @@
#pragma once
#include <iostream>
#include "ie_allocator.hpp"
namespace InferenceEngine {

View File

@@ -180,7 +180,7 @@ unsigned int CNNLayer::GetParamAsUInt(const char* param, unsigned int def) const
std::string message = "Cannot parse parameter " + std::string(param) + " from IR for layer " + name +
". Value " + val + " cannot be casted to unsigned int.";
try {
long value = std::stol(val);
long long value = std::stoll(val);
if ((value < 0) || (value > std::numeric_limits<unsigned int>::max())) {
IE_THROW() << message;
}
@@ -195,7 +195,7 @@ unsigned int CNNLayer::GetParamAsUInt(const char* param) const {
std::string message = "Cannot parse parameter " + std::string(param) + " from IR for layer " + name +
". Value " + val + " cannot be casted to unsigned int.";
try {
long value = std::stol(val);
long long value = std::stoll(val);
if ((value < 0) || (value > std::numeric_limits<unsigned int>::max())) {
IE_THROW() << message;
}
@@ -215,7 +215,7 @@ std::vector<unsigned int> CNNLayer::GetParamAsUInts(const char* param, std::vect
if (vals.empty()) return def;
while (getline(stream, str, ',')) {
try {
long value = std::stol(str);
long long value = std::stoll(str);
if ((value < 0) || (value > std::numeric_limits<unsigned int>::max())) {
IE_THROW() << message;
}
@@ -236,7 +236,7 @@ std::vector<unsigned int> CNNLayer::GetParamAsUInts(const char* param) const {
name + ". Value " + vals + " cannot be casted to unsigned int.";
while (getline(stream, str, ',')) {
try {
long value = std::stol(str);
long long value = std::stoll(str);
if ((value < 0) || (value > std::numeric_limits<unsigned int>::max())) {
IE_THROW() << message;
}

View File

@@ -10,7 +10,6 @@
#include <limits>
#include <map>
#include <memory>
#include <iostream>
#include <string>
#include <typeinfo>
#include <unordered_set>

View File

@@ -304,13 +304,6 @@ public:
}
}
void print_shape(const Blob::Ptr& b) {
for (size_t i = 0; i < b->getTensorDesc().getDims().size(); ++i) {
std::cout << b->getTensorDesc().getDims()[i] << ", ";
}
std::cout << std::endl;
}
StatusCode execute(std::vector<Blob::Ptr> &inputs, std::vector<Blob::Ptr> &outputs,
ResponseDesc *resp) noexcept override {
try {

View File

@@ -15,7 +15,7 @@
#include <cstdint>
#include <cstdlib>
#include <functional>
#include <iostream>
#include <ostream>
#include <iterator>
#include <numeric>
#include <sstream>

View File

@@ -9,7 +9,7 @@
#include <exception>
#include <map>
#include <vector>
#include <iostream>
namespace detail {
namespace onnx {
enum Field {

View File

@@ -11,7 +11,6 @@
#include <ngraph/opsets/opset1.hpp>
#include <ngraph/rt_info.hpp>
#include <iostream>
#include <numeric>
using namespace ngraph;

View File

@@ -12,8 +12,6 @@
#include <ngraph/rt_info.hpp>
#include <ngraph/pattern/op/wrap_type.hpp>
#include <iostream>
ngraph::snippets::pass::LoadMoveBroadcastToBroadcastLoad::LoadMoveBroadcastToBroadcastLoad() {
MATCHER_SCOPE(LoadMoveBroadcastToBroadcastLoad);
auto param_pattern = ngraph::pattern::wrap_type<ngraph::opset1::Parameter>();

View File

@@ -9,7 +9,7 @@
#include <unordered_map>
#include <unordered_set>
#include <string>
#include <iostream>
#include <ostream>
#include <sstream>
#include <vpu/utils/checked_cast.hpp>

View File

@@ -4,7 +4,7 @@
#include <vpu/utils/io.hpp>
#include <iostream>
#include <ostream>
namespace vpu {

View File

@@ -6,7 +6,7 @@
#include <string>
#include <vector>
#include <iostream>
#include <ostream>
#include <vpu/model/data.hpp>
#include <vpu/backend/blob_format.hpp>

View File

@@ -2,7 +2,6 @@
// SPDX-License-Identifier: Apache-2.0
//
#include <iostream>
#include <fstream>
#include <vector>
#include <mutex>

View File

@@ -59,6 +59,7 @@ std::vector<std::string> disabledTestPatterns() {
R"(.*ConstantResultSubgraphTest.*inPrc=I16.*)",
// TODO: Issue: 54436
R"(.*LSTMSequence.*CompareWithRefs.*mode=PURE_SEQ_RAND_SEQ_LEN_PARAM.*direction=bidirectional_clip=0.7_netPRC=FP32.*)",
R"(.*LSTMSequence.*CompareWithRefs.*mode=CONVERT_TO_TI_RAND_SEQ_LEN_PARAM_seq.*direction=bidirectional_clip=0.7_netPRC=FP32.*)",
// TODO: Issue: 54194
R"(.*ActivationLayerTest.*SoftPlus.*)",
};

View File

@@ -18,3 +18,5 @@ target_include_directories(fluid_test_computations PUBLIC "${CMAKE_CURRENT_SOURC
target_link_libraries(fluid_test_computations PRIVATE inference_engine_preproc_s inference_engine fluid)
target_compile_definitions(fluid_test_computations PRIVATE IMPLEMENT_FLUID_COMPUTATION_API)
add_dependencies(fluid_test_computations inference_engine_preproc)