Commit 520db227 authored by Michał Karzyński's avatar Michał Karzyński Committed by Scott Cyphers

[ONNX] Remove unused includes (#3353)

* [ONNX] Remove unused includes

* Update headers

* Clang format
parent 059a9653
...@@ -15,7 +15,6 @@ ...@@ -15,7 +15,6 @@
//***************************************************************************** //*****************************************************************************
#include <functional> #include <functional>
#include <set>
#include "graph.hpp" #include "graph.hpp"
#include "node.hpp" #include "node.hpp"
......
...@@ -21,7 +21,6 @@ ...@@ -21,7 +21,6 @@
#include "core/graph.hpp" #include "core/graph.hpp"
#include "core/model.hpp" #include "core/model.hpp"
#include "core/node.hpp"
#include "ngraph/except.hpp" #include "ngraph/except.hpp"
#include "onnx.hpp" #include "onnx.hpp"
#include "ops_bridge.hpp" #include "ops_bridge.hpp"
......
...@@ -16,7 +16,6 @@ ...@@ -16,7 +16,6 @@
#include <memory> #include <memory>
#include "cast.hpp" #include "cast.hpp"
#include "exceptions.hpp"
#include "ngraph/op/convert.hpp" #include "ngraph/op/convert.hpp"
#include "ngraph/type/element_type.hpp" #include "ngraph/type/element_type.hpp"
#include "utils/common.hpp" #include "utils/common.hpp"
......
...@@ -29,7 +29,6 @@ ...@@ -29,7 +29,6 @@
#include "ngraph/op/util/attr_types.hpp" #include "ngraph/op/util/attr_types.hpp"
#include "ngraph/op/util/broadcasting.hpp" #include "ngraph/op/util/broadcasting.hpp"
#include "ngraph/shape.hpp" #include "ngraph/shape.hpp"
#include "ngraph/strides.hpp"
namespace ngraph namespace ngraph
{ {
......
...@@ -14,15 +14,11 @@ ...@@ -14,15 +14,11 @@
// limitations under the License. // limitations under the License.
//***************************************************************************** //*****************************************************************************
#include <cstddef>
#include <cstdint> #include <cstdint>
#include <iterator>
#include <memory> #include <memory>
#include "exceptions.hpp"
#include "ngraph/axis_set.hpp" #include "ngraph/axis_set.hpp"
#include "ngraph/builder/make_constant.hpp" #include "ngraph/builder/make_constant.hpp"
#include "ngraph/op/constant.hpp"
#include "ngraph/op/convert.hpp" #include "ngraph/op/convert.hpp"
#include "ngraph/op/dequantize.hpp" #include "ngraph/op/dequantize.hpp"
#include "ngraph/shape.hpp" #include "ngraph/shape.hpp"
......
...@@ -14,7 +14,6 @@ ...@@ -14,7 +14,6 @@
// limitations under the License. // limitations under the License.
//***************************************************************************** //*****************************************************************************
#include <cmath>
#include <cstddef> #include <cstddef>
#include "exceptions.hpp" #include "exceptions.hpp"
...@@ -25,7 +24,6 @@ ...@@ -25,7 +24,6 @@
#include "ngraph/op/broadcast.hpp" #include "ngraph/op/broadcast.hpp"
#include "ngraph/op/constant.hpp" #include "ngraph/op/constant.hpp"
#include "ngraph/op/divide.hpp" #include "ngraph/op/divide.hpp"
#include "ngraph/op/divide.hpp"
#include "ngraph/op/multiply.hpp" #include "ngraph/op/multiply.hpp"
#include "ngraph/op/sqrt.hpp" #include "ngraph/op/sqrt.hpp"
#include "ngraph/op/subtract.hpp" #include "ngraph/op/subtract.hpp"
......
...@@ -14,7 +14,6 @@ ...@@ -14,7 +14,6 @@
// limitations under the License. // limitations under the License.
//***************************************************************************** //*****************************************************************************
#include <cmath>
#include <cstddef> #include <cstddef>
#include <cstdint> #include <cstdint>
......
...@@ -14,7 +14,6 @@ ...@@ -14,7 +14,6 @@
// limitations under the License. // limitations under the License.
//***************************************************************************** //*****************************************************************************
#include <cmath>
#include <cstddef> #include <cstddef>
#include <cstdint> #include <cstdint>
#include <memory> #include <memory>
......
...@@ -16,7 +16,6 @@ ...@@ -16,7 +16,6 @@
#include <memory> #include <memory>
#include "core/node.hpp"
#include "lrn.hpp" #include "lrn.hpp"
#include "ngraph/op/lrn.hpp" #include "ngraph/op/lrn.hpp"
......
...@@ -26,7 +26,6 @@ ...@@ -26,7 +26,6 @@
#include "exceptions.hpp" #include "exceptions.hpp"
#include "lstm.hpp" #include "lstm.hpp"
#include "ngraph/axis_set.hpp" #include "ngraph/axis_set.hpp"
#include "ngraph/builder/reshape.hpp"
#include "ngraph/builder/split.hpp" #include "ngraph/builder/split.hpp"
#include "ngraph/op/concat.hpp" #include "ngraph/op/concat.hpp"
#include "ngraph/op/constant.hpp" #include "ngraph/op/constant.hpp"
......
...@@ -28,7 +28,6 @@ ...@@ -28,7 +28,6 @@
#include "ngraph/op/subtract.hpp" #include "ngraph/op/subtract.hpp"
#include "ngraph/op/util/broadcasting.hpp" #include "ngraph/op/util/broadcasting.hpp"
#include "onehot.hpp" #include "onehot.hpp"
#include "utils/reshape.hpp"
namespace ngraph namespace ngraph
{ {
......
...@@ -14,11 +14,8 @@ ...@@ -14,11 +14,8 @@
// limitations under the License. // limitations under the License.
//***************************************************************************** //*****************************************************************************
#include <algorithm>
#include <iterator>
#include <memory> #include <memory>
#include "core/node.hpp"
#include "ngraph/op/fused/prelu.hpp" #include "ngraph/op/fused/prelu.hpp"
#include "prelu.hpp" #include "prelu.hpp"
......
...@@ -23,15 +23,10 @@ ...@@ -23,15 +23,10 @@
#include "ngraph/frontend/onnx_import/exceptions.hpp" #include "ngraph/frontend/onnx_import/exceptions.hpp"
#include "ngraph/frontend/onnx_import/op/conv.hpp" #include "ngraph/frontend/onnx_import/op/conv.hpp"
#include "ngraph/frontend/onnx_import/utils/convpool.hpp" #include "ngraph/frontend/onnx_import/utils/convpool.hpp"
#include "ngraph/op/add.hpp"
#include "ngraph/op/broadcast.hpp"
#include "ngraph/op/concat.hpp" #include "ngraph/op/concat.hpp"
#include "ngraph/op/divide.hpp"
#include "ngraph/op/multiply.hpp"
#include "ngraph/op/quantized_convolution.hpp" #include "ngraph/op/quantized_convolution.hpp"
#include "ngraph/op/slice.hpp" #include "ngraph/op/slice.hpp"
#include "ngraph/op/util/attr_types.hpp" #include "ngraph/op/util/attr_types.hpp"
#include "ngraph/op/util/broadcasting.hpp"
#include "ngraph/strides.hpp" #include "ngraph/strides.hpp"
#include "quant_conv.hpp" #include "quant_conv.hpp"
......
...@@ -14,12 +14,9 @@ ...@@ -14,12 +14,9 @@
// limitations under the License. // limitations under the License.
//***************************************************************************** //*****************************************************************************
#include <cstddef>
#include <cstdint> #include <cstdint>
#include <iterator>
#include <memory> #include <memory>
#include "exceptions.hpp"
#include "ngraph/axis_set.hpp" #include "ngraph/axis_set.hpp"
#include "ngraph/op/quantize.hpp" #include "ngraph/op/quantize.hpp"
#include "ngraph/shape.hpp" #include "ngraph/shape.hpp"
......
...@@ -17,10 +17,7 @@ ...@@ -17,10 +17,7 @@
#include <memory> #include <memory>
#include <vector> #include <vector>
#include "core/node.hpp"
#include "ngraph/node.hpp"
#include "ngraph/op/add.hpp" #include "ngraph/op/add.hpp"
#include "ngraph/op/broadcast.hpp"
#include "ngraph/op/constant.hpp" #include "ngraph/op/constant.hpp"
#include "ngraph/op/exp.hpp" #include "ngraph/op/exp.hpp"
#include "ngraph/op/maximum.hpp" #include "ngraph/op/maximum.hpp"
......
...@@ -18,7 +18,6 @@ ...@@ -18,7 +18,6 @@
#include <memory> #include <memory>
#include <vector> #include <vector>
#include "ngraph/log.hpp"
#include "ngraph/node.hpp" #include "ngraph/node.hpp"
#include "ngraph/op/slice.hpp" #include "ngraph/op/slice.hpp"
#include "slice.hpp" #include "slice.hpp"
......
...@@ -17,7 +17,6 @@ ...@@ -17,7 +17,6 @@
#include <cstdint> #include <cstdint>
#include <vector> #include <vector>
#include "exceptions.hpp"
#include "ngraph/op/fused/split.hpp" #include "ngraph/op/fused/split.hpp"
#include "op/split.hpp" #include "op/split.hpp"
......
...@@ -17,9 +17,6 @@ ...@@ -17,9 +17,6 @@
#include <memory> #include <memory>
#include <vector> #include <vector>
#include "core/node.hpp"
#include "ngraph/node.hpp"
#include "ngraph/op/broadcast.hpp"
#include "ngraph/op/constant.hpp" #include "ngraph/op/constant.hpp"
#include "ngraph/op/convert.hpp" #include "ngraph/op/convert.hpp"
#include "ngraph/op/greater.hpp" #include "ngraph/op/greater.hpp"
......
...@@ -16,11 +16,9 @@ ...@@ -16,11 +16,9 @@
#include <cstdint> #include <cstdint>
#include <memory> #include <memory>
#include <vector>
#include "exceptions.hpp" #include "exceptions.hpp"
#include "ngraph/node.hpp" #include "ngraph/node.hpp"
#include "ngraph/op/constant.hpp"
#include "ngraph/op/get_output_element.hpp" #include "ngraph/op/get_output_element.hpp"
#include "ngraph/op/topk.hpp" #include "ngraph/op/topk.hpp"
#include "ngraph/type/element_type.hpp" #include "ngraph/type/element_type.hpp"
......
...@@ -20,7 +20,6 @@ ...@@ -20,7 +20,6 @@
#include "ngraph/builder/reshape.hpp" #include "ngraph/builder/reshape.hpp"
#include "ngraph/node.hpp" #include "ngraph/node.hpp"
#include "transpose.hpp" #include "transpose.hpp"
#include "utils/reshape.hpp"
namespace ngraph namespace ngraph
{ {
......
...@@ -85,7 +85,6 @@ ...@@ -85,7 +85,6 @@
#include "op/not.hpp" #include "op/not.hpp"
#include "op/onehot.hpp" #include "op/onehot.hpp"
#include "op/or.hpp" #include "op/or.hpp"
#include "op/pad.cpp"
#include "op/pad.hpp" #include "op/pad.hpp"
#include "op/pow.hpp" #include "op/pow.hpp"
#include "op/prelu.hpp" #include "op/prelu.hpp"
......
...@@ -14,16 +14,12 @@ ...@@ -14,16 +14,12 @@
// limitations under the License. // limitations under the License.
//***************************************************************************** //*****************************************************************************
#include <cmath>
#include <string>
#include <unordered_map> #include <unordered_map>
#include "convpool.hpp" #include "convpool.hpp"
#include "core/attribute.hpp"
#include "core/node.hpp"
#include "exceptions.hpp" #include "exceptions.hpp"
#include "ngraph/coordinate_diff.hpp" #include "ngraph/op/util/attr_types.hpp"
#include "ngraph/shape.hpp" #include "ngraph/strides.hpp"
#include "ngraph/validation_util.hpp" #include "ngraph/validation_util.hpp"
namespace ngraph namespace ngraph
......
...@@ -16,13 +16,8 @@ ...@@ -16,13 +16,8 @@
#pragma once #pragma once
#include <string>
#include "core/attribute.hpp"
#include "core/node.hpp" #include "core/node.hpp"
#include "ngraph/coordinate_diff.hpp" #include "ngraph/coordinate_diff.hpp"
#include "ngraph/op/avg_pool.hpp"
#include "ngraph/op/util/attr_types.hpp"
#include "ngraph/shape.hpp" #include "ngraph/shape.hpp"
#include "ngraph/strides.hpp" #include "ngraph/strides.hpp"
......
...@@ -17,7 +17,6 @@ ...@@ -17,7 +17,6 @@
#include <cstddef> #include <cstddef>
#include <iterator> #include <iterator>
#include <memory> #include <memory>
#include <vector>
#include "matmul_factory.hpp" #include "matmul_factory.hpp"
#include "ngraph/builder/make_constant.hpp" #include "ngraph/builder/make_constant.hpp"
......
...@@ -15,14 +15,10 @@ ...@@ -15,14 +15,10 @@
//***************************************************************************** //*****************************************************************************
#include <algorithm> #include <algorithm>
#include <cmath>
#include <cstddef>
#include <functional> #include <functional>
#include <iterator> #include <iterator>
#include <numeric> #include <numeric>
#include <vector>
#include "exceptions.hpp"
#include "ngraph/builder/reshape.hpp" #include "ngraph/builder/reshape.hpp"
#include "ngraph/op/reshape.hpp" #include "ngraph/op/reshape.hpp"
#include "utils/common.hpp" #include "utils/common.hpp"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment