Skip to content
This repository was archived by the owner on Jan 3, 2023. It is now read-only.

Commit fb8e44a

Browse files
Adam Procterdiyessi
authored andcommitted
Remove runtime/cpu includes from things outside runtime/cpu (#2910)
1 parent d8c43cd commit fb8e44a

File tree

6 files changed

+3
-6
lines changed

6 files changed

+3
-6
lines changed

src/ngraph/pass/propagate_cacheability.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
#include "ngraph/op/constant.hpp"
2121
#include "ngraph/op/parameter.hpp"
2222
#include "ngraph/op/util/op_annotations.hpp"
23-
#include "ngraph/runtime/cpu/cpu_op_annotations.hpp"
2423

2524
using namespace std;
2625
using namespace ngraph;

src/ngraph/runtime/backend.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
#include "ngraph/file_util.hpp"
2020
#include "ngraph/runtime/backend.hpp"
2121
#include "ngraph/runtime/backend_manager.hpp"
22-
#include "ngraph/runtime/cpu/cpu_tensor_view.hpp"
2322
#include "ngraph/util.hpp"
2423

2524
using namespace std;

test/autodiff.in.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,10 @@
2727

2828
#include "ngraph/ngraph.hpp"
2929
#include "ngraph/pass/manager.hpp"
30+
#if defined(AUTODIFF_BACKEND_CPU)
3031
#include "ngraph/runtime/cpu/op/batch_mat_mul_transpose.hpp"
3132
#include "ngraph/runtime/cpu/pass/cpu_mat_fusion.hpp"
33+
#endif
3234
#include "ngraph/runtime/reference/avg_pool.hpp"
3335
#include "util/autodiff/backprop_function.hpp"
3436
#include "util/autodiff/numeric_compare.hpp"

test/control_dependencies.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@
3232
#include "ngraph/pass/manager.hpp"
3333
#include "ngraph/pass/visualize_tree.hpp"
3434
#include "ngraph/pattern/matcher.hpp"
35-
#include "ngraph/runtime/cpu/pass/cpu_fusion.hpp"
3635
#include "ngraph/serializer.hpp"
3736
#include "ngraph/util.hpp"
3837
#include "util/all_close.hpp"

test/hybrid_backend.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
#include "ngraph/pass/visualize_tree.hpp"
2626
#include "ngraph/runtime/backend.hpp"
2727
#include "ngraph/runtime/backend_manager.hpp"
28-
#include "ngraph/runtime/cpu/cpu_backend.hpp"
2928
#include "ngraph/runtime/hybrid/hybrid_backend.hpp"
3029
#include "ngraph/runtime/hybrid/hybrid_util.hpp"
3130
#include "ngraph/runtime/hybrid/op/function_call.hpp"
@@ -45,7 +44,7 @@ static runtime::Backend* hybrid_creator(const char* config)
4544
vector<string> unsupported_1 = {"Multiply"};
4645
vector<shared_ptr<runtime::Backend>> backend_list = {
4746
make_shared<runtime::interpreter::INTBackend>(unsupported_0),
48-
make_shared<runtime::cpu::CPU_Backend>()};
47+
runtime::Backend::create("CPU")};
4948

5049
return new runtime::hybrid::HybridBackend(backend_list);
5150
}

test/pattern.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@
3939
#include "ngraph/pattern/matcher.hpp"
4040
#include "ngraph/pattern/op/label.hpp"
4141
#include "ngraph/pattern/op/skip.hpp"
42-
#include "ngraph/runtime/cpu/pass/cpu_fusion.hpp"
4342
#include "ngraph/serializer.hpp"
4443
#include "util/matcher.hpp"
4544
#include "util/test_tools.hpp"

0 commit comments

Comments
 (0)