Skip to content
This repository was archived by the owner on Jul 22, 2026. It is now read-only.

Commit a0b4d7f

Browse files
author
NeiroYT
committed
clang
1 parent 0ff9504 commit a0b4d7f

4 files changed

Lines changed: 7 additions & 9 deletions

File tree

app/Graph/onnx_subgraphs.cpp

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,13 @@
99

1010
#include "build.hpp"
1111
#include "graph_transformations/graph_transformations.hpp"
12-
#include "perf/benchmarking.hpp"
1312
#include "layers_fused/ConvRelu.hpp"
13+
#include "perf/benchmarking.hpp"
1414

1515
using namespace it_lab_ai;
1616

17-
void alexnet_inf_careless(Graph& graph, const RuntimeOptions& options, Tensor& input, Tensor& output) {
17+
void alexnet_inf_careless(Graph& graph, const RuntimeOptions& options,
18+
Tensor& input, Tensor& output) {
1819
Tensor* o = new Tensor(output);
1920
Tensor* i = new Tensor(input);
2021
graph.inference(options);
@@ -23,10 +24,8 @@ void alexnet_inf_careless(Graph& graph, const RuntimeOptions& options, Tensor& i
2324
}
2425

2526
void alexnet_comparison() {
26-
2727
std::vector<size_t> counts = {979, 1134, 1031, 1009, 981,
2828
891, 957, 1027, 973, 1008};
29-
int stat = 0;
3029
size_t sum = std::accumulate(counts.begin(), counts.end(), size_t{0});
3130
int count_pic = static_cast<int>(sum) + 10;
3231
std::vector<float> res(count_pic * 28 * 28, 1.0f);
@@ -65,7 +64,6 @@ void alexnet_comparison() {
6564
std::cout << time2 << " for convrelu graph\n";
6665
}
6766

68-
6967
int main() {
7068
int type = 2;
7169
Tensor input = make_tensor(std::vector<int>({0}));

include/graph_transformations/graph_transformations.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
#include <vector>
33

44
#include "graph/graph.hpp"
5+
#include "layers/ConvLayer.hpp"
56
#include "layers/EWLayer.hpp"
67
#include "layers/Layer.hpp"
7-
#include "layers/ConvLayer.hpp"
88
#include "layers_fused/ConvRelu.hpp"
99

1010
namespace it_lab_ai {

include/layers_fused/ConvRelu.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
#include <string>
55
#include <vector>
66

7-
#include "layers/Layer.hpp"
87
#include "layers/ConvLayer.hpp"
8+
#include "layers/Layer.hpp"
99
#include "layers/Tensor.hpp"
1010

1111
namespace it_lab_ai {
@@ -79,4 +79,4 @@ class ConvReluLayer : public Layer {
7979
Tensor get_weights() override { return *kernel_; }
8080
#endif
8181
};
82-
} // namespace it_lab_ai
82+
} // namespace it_lab_ai

src/layers_fused/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ target_link_libraries(layers_fused_lib PUBLIC layers_lib)
55
target_link_libraries(layers_fused_lib PUBLIC TBB_unified)
66
target_link_libraries(layers_fused_lib PUBLIC OpenMP::OpenMP_CXX)
77
target_link_libraries(layers_fused_lib PUBLIC dnnl)
8-
target_link_libraries(layers_fused_lib PUBLIC Kokkos_imported)
8+
target_link_libraries(layers_fused_lib PUBLIC Kokkos_imported)

0 commit comments

Comments
 (0)