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
1515using 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
2526void 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-
6967int main () {
7068 int type = 2 ;
7169 Tensor input = make_tensor (std::vector<int >({0 }));
0 commit comments