From fce8e32e700b0a0a058402cdcf43564e94979126 Mon Sep 17 00:00:00 2001 From: Hashim Sharif <hsharif3@tyler.cs.illinois.edu> Date: Sun, 14 Jun 2020 23:01:04 -0500 Subject: [PATCH] Fixing ResNet18_cifar10 paths --- .../dnn_sources/src/half/resnet18_cifar10_half.cc | 2 +- .../dnn_sources/src/promise/resnet18_promise.cc | 8 ++++---- .../dnn_sources/src/resnet18_cifar10.cc | 2 +- .../conv2d_10_b.bin | Bin .../conv2d_10_w.bin | Bin .../conv2d_11_b.bin | Bin .../conv2d_11_w.bin | Bin .../conv2d_12_b.bin | 0 .../conv2d_12_w.bin | Bin .../conv2d_13_b.bin | 0 .../conv2d_13_w.bin | Bin .../conv2d_14_b.bin | 0 .../conv2d_14_w.bin | Bin .../conv2d_15_b.bin | Bin .../conv2d_15_w.bin | Bin .../conv2d_16_b.bin | 0 .../conv2d_16_w.bin | Bin .../conv2d_17_b.bin | Bin .../conv2d_17_w.bin | Bin .../conv2d_18_b.bin | Bin .../conv2d_18_w.bin | Bin .../conv2d_19_b.bin | Bin .../conv2d_19_w.bin | Bin .../conv2d_1_b.bin | 0 .../conv2d_1_w.bin | Bin .../conv2d_20_b.bin | Bin .../conv2d_20_w.bin | Bin .../conv2d_21_b.bin | 0 .../conv2d_21_w.bin | Bin .../conv2d_2_b.bin | 0 .../conv2d_2_w.bin | Bin .../conv2d_3_b.bin | 0 .../conv2d_3_w.bin | Bin .../conv2d_4_b.bin | 0 .../conv2d_4_w.bin | Bin .../conv2d_5_b.bin | 0 .../conv2d_5_w.bin | Bin .../conv2d_6_b.bin | 0 .../conv2d_6_w.bin | Bin .../conv2d_7_b.bin | 0 .../conv2d_7_w.bin | Bin .../conv2d_8_b.bin | 0 .../conv2d_8_w.bin | Bin .../conv2d_9_b.bin | Bin .../conv2d_9_w.bin | Bin .../dense_1_b.bin | 0 .../dense_1_w.bin | Bin .../input.bin | Bin .../labels.bin | Bin .../labels32.bin | Bin .../promise_src.cc | 0 .../src.cc | 0 .../benchmarks/resnet18/src/resnet18.cpp | 2 +- .../benchmarks/resnet18/src/resnet18_loop.cpp | 2 +- .../benchmarks/resnet18/src/resnet18_promise.cpp | 3 +-- 55 files changed, 9 insertions(+), 10 deletions(-) rename llvm/projects/hpvm-tensor-rt/model_params/{resnet18_cifar10_promise => resnet18_cifar10}/conv2d_10_b.bin (100%) rename llvm/projects/hpvm-tensor-rt/model_params/{resnet18_cifar10_promise => resnet18_cifar10}/conv2d_10_w.bin (100%) rename llvm/projects/hpvm-tensor-rt/model_params/{resnet18_cifar10_promise => resnet18_cifar10}/conv2d_11_b.bin (100%) rename llvm/projects/hpvm-tensor-rt/model_params/{resnet18_cifar10_promise => resnet18_cifar10}/conv2d_11_w.bin (100%) rename llvm/projects/hpvm-tensor-rt/model_params/{resnet18_cifar10_promise => resnet18_cifar10}/conv2d_12_b.bin (100%) rename llvm/projects/hpvm-tensor-rt/model_params/{resnet18_cifar10_promise => resnet18_cifar10}/conv2d_12_w.bin (100%) rename llvm/projects/hpvm-tensor-rt/model_params/{resnet18_cifar10_promise => resnet18_cifar10}/conv2d_13_b.bin (100%) rename llvm/projects/hpvm-tensor-rt/model_params/{resnet18_cifar10_promise => resnet18_cifar10}/conv2d_13_w.bin (100%) rename llvm/projects/hpvm-tensor-rt/model_params/{resnet18_cifar10_promise => resnet18_cifar10}/conv2d_14_b.bin (100%) rename llvm/projects/hpvm-tensor-rt/model_params/{resnet18_cifar10_promise => resnet18_cifar10}/conv2d_14_w.bin (100%) rename llvm/projects/hpvm-tensor-rt/model_params/{resnet18_cifar10_promise => resnet18_cifar10}/conv2d_15_b.bin (100%) rename llvm/projects/hpvm-tensor-rt/model_params/{resnet18_cifar10_promise => resnet18_cifar10}/conv2d_15_w.bin (100%) rename llvm/projects/hpvm-tensor-rt/model_params/{resnet18_cifar10_promise => resnet18_cifar10}/conv2d_16_b.bin (100%) rename llvm/projects/hpvm-tensor-rt/model_params/{resnet18_cifar10_promise => resnet18_cifar10}/conv2d_16_w.bin (100%) rename llvm/projects/hpvm-tensor-rt/model_params/{resnet18_cifar10_promise => resnet18_cifar10}/conv2d_17_b.bin (100%) rename llvm/projects/hpvm-tensor-rt/model_params/{resnet18_cifar10_promise => resnet18_cifar10}/conv2d_17_w.bin (100%) rename llvm/projects/hpvm-tensor-rt/model_params/{resnet18_cifar10_promise => resnet18_cifar10}/conv2d_18_b.bin (100%) rename llvm/projects/hpvm-tensor-rt/model_params/{resnet18_cifar10_promise => resnet18_cifar10}/conv2d_18_w.bin (100%) rename llvm/projects/hpvm-tensor-rt/model_params/{resnet18_cifar10_promise => resnet18_cifar10}/conv2d_19_b.bin (100%) rename llvm/projects/hpvm-tensor-rt/model_params/{resnet18_cifar10_promise => resnet18_cifar10}/conv2d_19_w.bin (100%) rename llvm/projects/hpvm-tensor-rt/model_params/{resnet18_cifar10_promise => resnet18_cifar10}/conv2d_1_b.bin (100%) rename llvm/projects/hpvm-tensor-rt/model_params/{resnet18_cifar10_promise => resnet18_cifar10}/conv2d_1_w.bin (100%) rename llvm/projects/hpvm-tensor-rt/model_params/{resnet18_cifar10_promise => resnet18_cifar10}/conv2d_20_b.bin (100%) rename llvm/projects/hpvm-tensor-rt/model_params/{resnet18_cifar10_promise => resnet18_cifar10}/conv2d_20_w.bin (100%) rename llvm/projects/hpvm-tensor-rt/model_params/{resnet18_cifar10_promise => resnet18_cifar10}/conv2d_21_b.bin (100%) rename llvm/projects/hpvm-tensor-rt/model_params/{resnet18_cifar10_promise => resnet18_cifar10}/conv2d_21_w.bin (100%) rename llvm/projects/hpvm-tensor-rt/model_params/{resnet18_cifar10_promise => resnet18_cifar10}/conv2d_2_b.bin (100%) rename llvm/projects/hpvm-tensor-rt/model_params/{resnet18_cifar10_promise => resnet18_cifar10}/conv2d_2_w.bin (100%) rename llvm/projects/hpvm-tensor-rt/model_params/{resnet18_cifar10_promise => resnet18_cifar10}/conv2d_3_b.bin (100%) rename llvm/projects/hpvm-tensor-rt/model_params/{resnet18_cifar10_promise => resnet18_cifar10}/conv2d_3_w.bin (100%) rename llvm/projects/hpvm-tensor-rt/model_params/{resnet18_cifar10_promise => resnet18_cifar10}/conv2d_4_b.bin (100%) rename llvm/projects/hpvm-tensor-rt/model_params/{resnet18_cifar10_promise => resnet18_cifar10}/conv2d_4_w.bin (100%) rename llvm/projects/hpvm-tensor-rt/model_params/{resnet18_cifar10_promise => resnet18_cifar10}/conv2d_5_b.bin (100%) rename llvm/projects/hpvm-tensor-rt/model_params/{resnet18_cifar10_promise => resnet18_cifar10}/conv2d_5_w.bin (100%) rename llvm/projects/hpvm-tensor-rt/model_params/{resnet18_cifar10_promise => resnet18_cifar10}/conv2d_6_b.bin (100%) rename llvm/projects/hpvm-tensor-rt/model_params/{resnet18_cifar10_promise => resnet18_cifar10}/conv2d_6_w.bin (100%) rename llvm/projects/hpvm-tensor-rt/model_params/{resnet18_cifar10_promise => resnet18_cifar10}/conv2d_7_b.bin (100%) rename llvm/projects/hpvm-tensor-rt/model_params/{resnet18_cifar10_promise => resnet18_cifar10}/conv2d_7_w.bin (100%) rename llvm/projects/hpvm-tensor-rt/model_params/{resnet18_cifar10_promise => resnet18_cifar10}/conv2d_8_b.bin (100%) rename llvm/projects/hpvm-tensor-rt/model_params/{resnet18_cifar10_promise => resnet18_cifar10}/conv2d_8_w.bin (100%) rename llvm/projects/hpvm-tensor-rt/model_params/{resnet18_cifar10_promise => resnet18_cifar10}/conv2d_9_b.bin (100%) rename llvm/projects/hpvm-tensor-rt/model_params/{resnet18_cifar10_promise => resnet18_cifar10}/conv2d_9_w.bin (100%) rename llvm/projects/hpvm-tensor-rt/model_params/{resnet18_cifar10_promise => resnet18_cifar10}/dense_1_b.bin (100%) rename llvm/projects/hpvm-tensor-rt/model_params/{resnet18_cifar10_promise => resnet18_cifar10}/dense_1_w.bin (100%) rename llvm/projects/hpvm-tensor-rt/model_params/{resnet18_cifar10_promise => resnet18_cifar10}/input.bin (100%) rename llvm/projects/hpvm-tensor-rt/model_params/{resnet18_cifar10_promise => resnet18_cifar10}/labels.bin (100%) rename llvm/projects/hpvm-tensor-rt/model_params/{resnet18_cifar10_promise => resnet18_cifar10}/labels32.bin (100%) rename llvm/projects/hpvm-tensor-rt/model_params/{resnet18_cifar10_promise => resnet18_cifar10}/promise_src.cc (100%) rename llvm/projects/hpvm-tensor-rt/model_params/{resnet18_cifar10_promise => resnet18_cifar10}/src.cc (100%) diff --git a/llvm/projects/hpvm-tensor-rt/dnn_sources/src/half/resnet18_cifar10_half.cc b/llvm/projects/hpvm-tensor-rt/dnn_sources/src/half/resnet18_cifar10_half.cc index 4b0df0f28e..9779b95d86 100644 --- a/llvm/projects/hpvm-tensor-rt/dnn_sources/src/half/resnet18_cifar10_half.cc +++ b/llvm/projects/hpvm-tensor-rt/dnn_sources/src/half/resnet18_cifar10_half.cc @@ -13,7 +13,7 @@ int main(){ llvm_hpvm_initTensorRt(0); - std::string dir_prefix = std::string("../model_params/resnet18_cifar10_promise/"); + std::string dir_prefix = std::string("../model_params/resnet18_cifar10/"); std::string input_path = dir_prefix + std::string("input.bin"); //void* input = readTrainedWeights(input_path.c_str(), 0, batch_size,3,32,32); std::string labels_path = dir_prefix + std::string("labels.bin"); diff --git a/llvm/projects/hpvm-tensor-rt/dnn_sources/src/promise/resnet18_promise.cc b/llvm/projects/hpvm-tensor-rt/dnn_sources/src/promise/resnet18_promise.cc index 261753c1a9..2ade8b6090 100644 --- a/llvm/projects/hpvm-tensor-rt/dnn_sources/src/promise/resnet18_promise.cc +++ b/llvm/projects/hpvm-tensor-rt/dnn_sources/src/promise/resnet18_promise.cc @@ -17,7 +17,7 @@ int to_skip = 5; int main(int argc, char* argv[]){ - int test_input_size = 3000; + int test_input_size = 5000; int batch_size = 1000; int offset = 5000; @@ -54,11 +54,11 @@ int main(int argc, char* argv[]){ classConfs = (float*) malloc(sizeof(float) * test_input_size); predictedLabels = (int*) malloc(sizeof(int) * test_input_size); } - - llvm_hpvm_initTensorRt(1); + llvm_hpvm_initTensorRt(0); + int missed = 0; for (int i = 0 ; i < total_runs; i++){ @@ -72,7 +72,7 @@ int main(int argc, char* argv[]){ float final_accuracy = 0.0; - std::string dir_prefix = std::string("../model_params/resnet18_cifar10_promise/"); + std::string dir_prefix = std::string("../model_params/resnet18_cifar10/"); std::string input_path = dir_prefix + std::string("input.bin"); std::string labels_path = dir_prefix + std::string("labels.bin"); std::string labels32_path = dir_prefix + std::string("labels32.bin"); diff --git a/llvm/projects/hpvm-tensor-rt/dnn_sources/src/resnet18_cifar10.cc b/llvm/projects/hpvm-tensor-rt/dnn_sources/src/resnet18_cifar10.cc index bc3022234a..b0c868085b 100644 --- a/llvm/projects/hpvm-tensor-rt/dnn_sources/src/resnet18_cifar10.cc +++ b/llvm/projects/hpvm-tensor-rt/dnn_sources/src/resnet18_cifar10.cc @@ -13,7 +13,7 @@ int main(){ llvm_hpvm_initTensorRt(1); - std::string dir_prefix = std::string("../model_params/resnet18_cifar10_promise/"); + std::string dir_prefix = std::string("../model_params/resnet18_cifar10/"); std::string input_path = dir_prefix + std::string("input.bin"); //void* input = readTrainedWeights(input_path.c_str(), 0, batch_size,3,32,32); std::string labels_path = dir_prefix + std::string("labels.bin"); diff --git a/llvm/projects/hpvm-tensor-rt/model_params/resnet18_cifar10_promise/conv2d_10_b.bin b/llvm/projects/hpvm-tensor-rt/model_params/resnet18_cifar10/conv2d_10_b.bin similarity index 100% rename from llvm/projects/hpvm-tensor-rt/model_params/resnet18_cifar10_promise/conv2d_10_b.bin rename to llvm/projects/hpvm-tensor-rt/model_params/resnet18_cifar10/conv2d_10_b.bin diff --git a/llvm/projects/hpvm-tensor-rt/model_params/resnet18_cifar10_promise/conv2d_10_w.bin b/llvm/projects/hpvm-tensor-rt/model_params/resnet18_cifar10/conv2d_10_w.bin similarity index 100% rename from llvm/projects/hpvm-tensor-rt/model_params/resnet18_cifar10_promise/conv2d_10_w.bin rename to llvm/projects/hpvm-tensor-rt/model_params/resnet18_cifar10/conv2d_10_w.bin diff --git a/llvm/projects/hpvm-tensor-rt/model_params/resnet18_cifar10_promise/conv2d_11_b.bin b/llvm/projects/hpvm-tensor-rt/model_params/resnet18_cifar10/conv2d_11_b.bin similarity index 100% rename from llvm/projects/hpvm-tensor-rt/model_params/resnet18_cifar10_promise/conv2d_11_b.bin rename to llvm/projects/hpvm-tensor-rt/model_params/resnet18_cifar10/conv2d_11_b.bin diff --git a/llvm/projects/hpvm-tensor-rt/model_params/resnet18_cifar10_promise/conv2d_11_w.bin b/llvm/projects/hpvm-tensor-rt/model_params/resnet18_cifar10/conv2d_11_w.bin similarity index 100% rename from llvm/projects/hpvm-tensor-rt/model_params/resnet18_cifar10_promise/conv2d_11_w.bin rename to llvm/projects/hpvm-tensor-rt/model_params/resnet18_cifar10/conv2d_11_w.bin diff --git a/llvm/projects/hpvm-tensor-rt/model_params/resnet18_cifar10_promise/conv2d_12_b.bin b/llvm/projects/hpvm-tensor-rt/model_params/resnet18_cifar10/conv2d_12_b.bin similarity index 100% rename from llvm/projects/hpvm-tensor-rt/model_params/resnet18_cifar10_promise/conv2d_12_b.bin rename to llvm/projects/hpvm-tensor-rt/model_params/resnet18_cifar10/conv2d_12_b.bin diff --git a/llvm/projects/hpvm-tensor-rt/model_params/resnet18_cifar10_promise/conv2d_12_w.bin b/llvm/projects/hpvm-tensor-rt/model_params/resnet18_cifar10/conv2d_12_w.bin similarity index 100% rename from llvm/projects/hpvm-tensor-rt/model_params/resnet18_cifar10_promise/conv2d_12_w.bin rename to llvm/projects/hpvm-tensor-rt/model_params/resnet18_cifar10/conv2d_12_w.bin diff --git a/llvm/projects/hpvm-tensor-rt/model_params/resnet18_cifar10_promise/conv2d_13_b.bin b/llvm/projects/hpvm-tensor-rt/model_params/resnet18_cifar10/conv2d_13_b.bin similarity index 100% rename from llvm/projects/hpvm-tensor-rt/model_params/resnet18_cifar10_promise/conv2d_13_b.bin rename to llvm/projects/hpvm-tensor-rt/model_params/resnet18_cifar10/conv2d_13_b.bin diff --git a/llvm/projects/hpvm-tensor-rt/model_params/resnet18_cifar10_promise/conv2d_13_w.bin b/llvm/projects/hpvm-tensor-rt/model_params/resnet18_cifar10/conv2d_13_w.bin similarity index 100% rename from llvm/projects/hpvm-tensor-rt/model_params/resnet18_cifar10_promise/conv2d_13_w.bin rename to llvm/projects/hpvm-tensor-rt/model_params/resnet18_cifar10/conv2d_13_w.bin diff --git a/llvm/projects/hpvm-tensor-rt/model_params/resnet18_cifar10_promise/conv2d_14_b.bin b/llvm/projects/hpvm-tensor-rt/model_params/resnet18_cifar10/conv2d_14_b.bin similarity index 100% rename from llvm/projects/hpvm-tensor-rt/model_params/resnet18_cifar10_promise/conv2d_14_b.bin rename to llvm/projects/hpvm-tensor-rt/model_params/resnet18_cifar10/conv2d_14_b.bin diff --git a/llvm/projects/hpvm-tensor-rt/model_params/resnet18_cifar10_promise/conv2d_14_w.bin b/llvm/projects/hpvm-tensor-rt/model_params/resnet18_cifar10/conv2d_14_w.bin similarity index 100% rename from llvm/projects/hpvm-tensor-rt/model_params/resnet18_cifar10_promise/conv2d_14_w.bin rename to llvm/projects/hpvm-tensor-rt/model_params/resnet18_cifar10/conv2d_14_w.bin diff --git a/llvm/projects/hpvm-tensor-rt/model_params/resnet18_cifar10_promise/conv2d_15_b.bin b/llvm/projects/hpvm-tensor-rt/model_params/resnet18_cifar10/conv2d_15_b.bin similarity index 100% rename from llvm/projects/hpvm-tensor-rt/model_params/resnet18_cifar10_promise/conv2d_15_b.bin rename to llvm/projects/hpvm-tensor-rt/model_params/resnet18_cifar10/conv2d_15_b.bin diff --git a/llvm/projects/hpvm-tensor-rt/model_params/resnet18_cifar10_promise/conv2d_15_w.bin b/llvm/projects/hpvm-tensor-rt/model_params/resnet18_cifar10/conv2d_15_w.bin similarity index 100% rename from llvm/projects/hpvm-tensor-rt/model_params/resnet18_cifar10_promise/conv2d_15_w.bin rename to llvm/projects/hpvm-tensor-rt/model_params/resnet18_cifar10/conv2d_15_w.bin diff --git a/llvm/projects/hpvm-tensor-rt/model_params/resnet18_cifar10_promise/conv2d_16_b.bin b/llvm/projects/hpvm-tensor-rt/model_params/resnet18_cifar10/conv2d_16_b.bin similarity index 100% rename from llvm/projects/hpvm-tensor-rt/model_params/resnet18_cifar10_promise/conv2d_16_b.bin rename to llvm/projects/hpvm-tensor-rt/model_params/resnet18_cifar10/conv2d_16_b.bin diff --git a/llvm/projects/hpvm-tensor-rt/model_params/resnet18_cifar10_promise/conv2d_16_w.bin b/llvm/projects/hpvm-tensor-rt/model_params/resnet18_cifar10/conv2d_16_w.bin similarity index 100% rename from llvm/projects/hpvm-tensor-rt/model_params/resnet18_cifar10_promise/conv2d_16_w.bin rename to llvm/projects/hpvm-tensor-rt/model_params/resnet18_cifar10/conv2d_16_w.bin diff --git a/llvm/projects/hpvm-tensor-rt/model_params/resnet18_cifar10_promise/conv2d_17_b.bin b/llvm/projects/hpvm-tensor-rt/model_params/resnet18_cifar10/conv2d_17_b.bin similarity index 100% rename from llvm/projects/hpvm-tensor-rt/model_params/resnet18_cifar10_promise/conv2d_17_b.bin rename to llvm/projects/hpvm-tensor-rt/model_params/resnet18_cifar10/conv2d_17_b.bin diff --git a/llvm/projects/hpvm-tensor-rt/model_params/resnet18_cifar10_promise/conv2d_17_w.bin b/llvm/projects/hpvm-tensor-rt/model_params/resnet18_cifar10/conv2d_17_w.bin similarity index 100% rename from llvm/projects/hpvm-tensor-rt/model_params/resnet18_cifar10_promise/conv2d_17_w.bin rename to llvm/projects/hpvm-tensor-rt/model_params/resnet18_cifar10/conv2d_17_w.bin diff --git a/llvm/projects/hpvm-tensor-rt/model_params/resnet18_cifar10_promise/conv2d_18_b.bin b/llvm/projects/hpvm-tensor-rt/model_params/resnet18_cifar10/conv2d_18_b.bin similarity index 100% rename from llvm/projects/hpvm-tensor-rt/model_params/resnet18_cifar10_promise/conv2d_18_b.bin rename to llvm/projects/hpvm-tensor-rt/model_params/resnet18_cifar10/conv2d_18_b.bin diff --git a/llvm/projects/hpvm-tensor-rt/model_params/resnet18_cifar10_promise/conv2d_18_w.bin b/llvm/projects/hpvm-tensor-rt/model_params/resnet18_cifar10/conv2d_18_w.bin similarity index 100% rename from llvm/projects/hpvm-tensor-rt/model_params/resnet18_cifar10_promise/conv2d_18_w.bin rename to llvm/projects/hpvm-tensor-rt/model_params/resnet18_cifar10/conv2d_18_w.bin diff --git a/llvm/projects/hpvm-tensor-rt/model_params/resnet18_cifar10_promise/conv2d_19_b.bin b/llvm/projects/hpvm-tensor-rt/model_params/resnet18_cifar10/conv2d_19_b.bin similarity index 100% rename from llvm/projects/hpvm-tensor-rt/model_params/resnet18_cifar10_promise/conv2d_19_b.bin rename to llvm/projects/hpvm-tensor-rt/model_params/resnet18_cifar10/conv2d_19_b.bin diff --git a/llvm/projects/hpvm-tensor-rt/model_params/resnet18_cifar10_promise/conv2d_19_w.bin b/llvm/projects/hpvm-tensor-rt/model_params/resnet18_cifar10/conv2d_19_w.bin similarity index 100% rename from llvm/projects/hpvm-tensor-rt/model_params/resnet18_cifar10_promise/conv2d_19_w.bin rename to llvm/projects/hpvm-tensor-rt/model_params/resnet18_cifar10/conv2d_19_w.bin diff --git a/llvm/projects/hpvm-tensor-rt/model_params/resnet18_cifar10_promise/conv2d_1_b.bin b/llvm/projects/hpvm-tensor-rt/model_params/resnet18_cifar10/conv2d_1_b.bin similarity index 100% rename from llvm/projects/hpvm-tensor-rt/model_params/resnet18_cifar10_promise/conv2d_1_b.bin rename to llvm/projects/hpvm-tensor-rt/model_params/resnet18_cifar10/conv2d_1_b.bin diff --git a/llvm/projects/hpvm-tensor-rt/model_params/resnet18_cifar10_promise/conv2d_1_w.bin b/llvm/projects/hpvm-tensor-rt/model_params/resnet18_cifar10/conv2d_1_w.bin similarity index 100% rename from llvm/projects/hpvm-tensor-rt/model_params/resnet18_cifar10_promise/conv2d_1_w.bin rename to llvm/projects/hpvm-tensor-rt/model_params/resnet18_cifar10/conv2d_1_w.bin diff --git a/llvm/projects/hpvm-tensor-rt/model_params/resnet18_cifar10_promise/conv2d_20_b.bin b/llvm/projects/hpvm-tensor-rt/model_params/resnet18_cifar10/conv2d_20_b.bin similarity index 100% rename from llvm/projects/hpvm-tensor-rt/model_params/resnet18_cifar10_promise/conv2d_20_b.bin rename to llvm/projects/hpvm-tensor-rt/model_params/resnet18_cifar10/conv2d_20_b.bin diff --git a/llvm/projects/hpvm-tensor-rt/model_params/resnet18_cifar10_promise/conv2d_20_w.bin b/llvm/projects/hpvm-tensor-rt/model_params/resnet18_cifar10/conv2d_20_w.bin similarity index 100% rename from llvm/projects/hpvm-tensor-rt/model_params/resnet18_cifar10_promise/conv2d_20_w.bin rename to llvm/projects/hpvm-tensor-rt/model_params/resnet18_cifar10/conv2d_20_w.bin diff --git a/llvm/projects/hpvm-tensor-rt/model_params/resnet18_cifar10_promise/conv2d_21_b.bin b/llvm/projects/hpvm-tensor-rt/model_params/resnet18_cifar10/conv2d_21_b.bin similarity index 100% rename from llvm/projects/hpvm-tensor-rt/model_params/resnet18_cifar10_promise/conv2d_21_b.bin rename to llvm/projects/hpvm-tensor-rt/model_params/resnet18_cifar10/conv2d_21_b.bin diff --git a/llvm/projects/hpvm-tensor-rt/model_params/resnet18_cifar10_promise/conv2d_21_w.bin b/llvm/projects/hpvm-tensor-rt/model_params/resnet18_cifar10/conv2d_21_w.bin similarity index 100% rename from llvm/projects/hpvm-tensor-rt/model_params/resnet18_cifar10_promise/conv2d_21_w.bin rename to llvm/projects/hpvm-tensor-rt/model_params/resnet18_cifar10/conv2d_21_w.bin diff --git a/llvm/projects/hpvm-tensor-rt/model_params/resnet18_cifar10_promise/conv2d_2_b.bin b/llvm/projects/hpvm-tensor-rt/model_params/resnet18_cifar10/conv2d_2_b.bin similarity index 100% rename from llvm/projects/hpvm-tensor-rt/model_params/resnet18_cifar10_promise/conv2d_2_b.bin rename to llvm/projects/hpvm-tensor-rt/model_params/resnet18_cifar10/conv2d_2_b.bin diff --git a/llvm/projects/hpvm-tensor-rt/model_params/resnet18_cifar10_promise/conv2d_2_w.bin b/llvm/projects/hpvm-tensor-rt/model_params/resnet18_cifar10/conv2d_2_w.bin similarity index 100% rename from llvm/projects/hpvm-tensor-rt/model_params/resnet18_cifar10_promise/conv2d_2_w.bin rename to llvm/projects/hpvm-tensor-rt/model_params/resnet18_cifar10/conv2d_2_w.bin diff --git a/llvm/projects/hpvm-tensor-rt/model_params/resnet18_cifar10_promise/conv2d_3_b.bin b/llvm/projects/hpvm-tensor-rt/model_params/resnet18_cifar10/conv2d_3_b.bin similarity index 100% rename from llvm/projects/hpvm-tensor-rt/model_params/resnet18_cifar10_promise/conv2d_3_b.bin rename to llvm/projects/hpvm-tensor-rt/model_params/resnet18_cifar10/conv2d_3_b.bin diff --git a/llvm/projects/hpvm-tensor-rt/model_params/resnet18_cifar10_promise/conv2d_3_w.bin b/llvm/projects/hpvm-tensor-rt/model_params/resnet18_cifar10/conv2d_3_w.bin similarity index 100% rename from llvm/projects/hpvm-tensor-rt/model_params/resnet18_cifar10_promise/conv2d_3_w.bin rename to llvm/projects/hpvm-tensor-rt/model_params/resnet18_cifar10/conv2d_3_w.bin diff --git a/llvm/projects/hpvm-tensor-rt/model_params/resnet18_cifar10_promise/conv2d_4_b.bin b/llvm/projects/hpvm-tensor-rt/model_params/resnet18_cifar10/conv2d_4_b.bin similarity index 100% rename from llvm/projects/hpvm-tensor-rt/model_params/resnet18_cifar10_promise/conv2d_4_b.bin rename to llvm/projects/hpvm-tensor-rt/model_params/resnet18_cifar10/conv2d_4_b.bin diff --git a/llvm/projects/hpvm-tensor-rt/model_params/resnet18_cifar10_promise/conv2d_4_w.bin b/llvm/projects/hpvm-tensor-rt/model_params/resnet18_cifar10/conv2d_4_w.bin similarity index 100% rename from llvm/projects/hpvm-tensor-rt/model_params/resnet18_cifar10_promise/conv2d_4_w.bin rename to llvm/projects/hpvm-tensor-rt/model_params/resnet18_cifar10/conv2d_4_w.bin diff --git a/llvm/projects/hpvm-tensor-rt/model_params/resnet18_cifar10_promise/conv2d_5_b.bin b/llvm/projects/hpvm-tensor-rt/model_params/resnet18_cifar10/conv2d_5_b.bin similarity index 100% rename from llvm/projects/hpvm-tensor-rt/model_params/resnet18_cifar10_promise/conv2d_5_b.bin rename to llvm/projects/hpvm-tensor-rt/model_params/resnet18_cifar10/conv2d_5_b.bin diff --git a/llvm/projects/hpvm-tensor-rt/model_params/resnet18_cifar10_promise/conv2d_5_w.bin b/llvm/projects/hpvm-tensor-rt/model_params/resnet18_cifar10/conv2d_5_w.bin similarity index 100% rename from llvm/projects/hpvm-tensor-rt/model_params/resnet18_cifar10_promise/conv2d_5_w.bin rename to llvm/projects/hpvm-tensor-rt/model_params/resnet18_cifar10/conv2d_5_w.bin diff --git a/llvm/projects/hpvm-tensor-rt/model_params/resnet18_cifar10_promise/conv2d_6_b.bin b/llvm/projects/hpvm-tensor-rt/model_params/resnet18_cifar10/conv2d_6_b.bin similarity index 100% rename from llvm/projects/hpvm-tensor-rt/model_params/resnet18_cifar10_promise/conv2d_6_b.bin rename to llvm/projects/hpvm-tensor-rt/model_params/resnet18_cifar10/conv2d_6_b.bin diff --git a/llvm/projects/hpvm-tensor-rt/model_params/resnet18_cifar10_promise/conv2d_6_w.bin b/llvm/projects/hpvm-tensor-rt/model_params/resnet18_cifar10/conv2d_6_w.bin similarity index 100% rename from llvm/projects/hpvm-tensor-rt/model_params/resnet18_cifar10_promise/conv2d_6_w.bin rename to llvm/projects/hpvm-tensor-rt/model_params/resnet18_cifar10/conv2d_6_w.bin diff --git a/llvm/projects/hpvm-tensor-rt/model_params/resnet18_cifar10_promise/conv2d_7_b.bin b/llvm/projects/hpvm-tensor-rt/model_params/resnet18_cifar10/conv2d_7_b.bin similarity index 100% rename from llvm/projects/hpvm-tensor-rt/model_params/resnet18_cifar10_promise/conv2d_7_b.bin rename to llvm/projects/hpvm-tensor-rt/model_params/resnet18_cifar10/conv2d_7_b.bin diff --git a/llvm/projects/hpvm-tensor-rt/model_params/resnet18_cifar10_promise/conv2d_7_w.bin b/llvm/projects/hpvm-tensor-rt/model_params/resnet18_cifar10/conv2d_7_w.bin similarity index 100% rename from llvm/projects/hpvm-tensor-rt/model_params/resnet18_cifar10_promise/conv2d_7_w.bin rename to llvm/projects/hpvm-tensor-rt/model_params/resnet18_cifar10/conv2d_7_w.bin diff --git a/llvm/projects/hpvm-tensor-rt/model_params/resnet18_cifar10_promise/conv2d_8_b.bin b/llvm/projects/hpvm-tensor-rt/model_params/resnet18_cifar10/conv2d_8_b.bin similarity index 100% rename from llvm/projects/hpvm-tensor-rt/model_params/resnet18_cifar10_promise/conv2d_8_b.bin rename to llvm/projects/hpvm-tensor-rt/model_params/resnet18_cifar10/conv2d_8_b.bin diff --git a/llvm/projects/hpvm-tensor-rt/model_params/resnet18_cifar10_promise/conv2d_8_w.bin b/llvm/projects/hpvm-tensor-rt/model_params/resnet18_cifar10/conv2d_8_w.bin similarity index 100% rename from llvm/projects/hpvm-tensor-rt/model_params/resnet18_cifar10_promise/conv2d_8_w.bin rename to llvm/projects/hpvm-tensor-rt/model_params/resnet18_cifar10/conv2d_8_w.bin diff --git a/llvm/projects/hpvm-tensor-rt/model_params/resnet18_cifar10_promise/conv2d_9_b.bin b/llvm/projects/hpvm-tensor-rt/model_params/resnet18_cifar10/conv2d_9_b.bin similarity index 100% rename from llvm/projects/hpvm-tensor-rt/model_params/resnet18_cifar10_promise/conv2d_9_b.bin rename to llvm/projects/hpvm-tensor-rt/model_params/resnet18_cifar10/conv2d_9_b.bin diff --git a/llvm/projects/hpvm-tensor-rt/model_params/resnet18_cifar10_promise/conv2d_9_w.bin b/llvm/projects/hpvm-tensor-rt/model_params/resnet18_cifar10/conv2d_9_w.bin similarity index 100% rename from llvm/projects/hpvm-tensor-rt/model_params/resnet18_cifar10_promise/conv2d_9_w.bin rename to llvm/projects/hpvm-tensor-rt/model_params/resnet18_cifar10/conv2d_9_w.bin diff --git a/llvm/projects/hpvm-tensor-rt/model_params/resnet18_cifar10_promise/dense_1_b.bin b/llvm/projects/hpvm-tensor-rt/model_params/resnet18_cifar10/dense_1_b.bin similarity index 100% rename from llvm/projects/hpvm-tensor-rt/model_params/resnet18_cifar10_promise/dense_1_b.bin rename to llvm/projects/hpvm-tensor-rt/model_params/resnet18_cifar10/dense_1_b.bin diff --git a/llvm/projects/hpvm-tensor-rt/model_params/resnet18_cifar10_promise/dense_1_w.bin b/llvm/projects/hpvm-tensor-rt/model_params/resnet18_cifar10/dense_1_w.bin similarity index 100% rename from llvm/projects/hpvm-tensor-rt/model_params/resnet18_cifar10_promise/dense_1_w.bin rename to llvm/projects/hpvm-tensor-rt/model_params/resnet18_cifar10/dense_1_w.bin diff --git a/llvm/projects/hpvm-tensor-rt/model_params/resnet18_cifar10_promise/input.bin b/llvm/projects/hpvm-tensor-rt/model_params/resnet18_cifar10/input.bin similarity index 100% rename from llvm/projects/hpvm-tensor-rt/model_params/resnet18_cifar10_promise/input.bin rename to llvm/projects/hpvm-tensor-rt/model_params/resnet18_cifar10/input.bin diff --git a/llvm/projects/hpvm-tensor-rt/model_params/resnet18_cifar10_promise/labels.bin b/llvm/projects/hpvm-tensor-rt/model_params/resnet18_cifar10/labels.bin similarity index 100% rename from llvm/projects/hpvm-tensor-rt/model_params/resnet18_cifar10_promise/labels.bin rename to llvm/projects/hpvm-tensor-rt/model_params/resnet18_cifar10/labels.bin diff --git a/llvm/projects/hpvm-tensor-rt/model_params/resnet18_cifar10_promise/labels32.bin b/llvm/projects/hpvm-tensor-rt/model_params/resnet18_cifar10/labels32.bin similarity index 100% rename from llvm/projects/hpvm-tensor-rt/model_params/resnet18_cifar10_promise/labels32.bin rename to llvm/projects/hpvm-tensor-rt/model_params/resnet18_cifar10/labels32.bin diff --git a/llvm/projects/hpvm-tensor-rt/model_params/resnet18_cifar10_promise/promise_src.cc b/llvm/projects/hpvm-tensor-rt/model_params/resnet18_cifar10/promise_src.cc similarity index 100% rename from llvm/projects/hpvm-tensor-rt/model_params/resnet18_cifar10_promise/promise_src.cc rename to llvm/projects/hpvm-tensor-rt/model_params/resnet18_cifar10/promise_src.cc diff --git a/llvm/projects/hpvm-tensor-rt/model_params/resnet18_cifar10_promise/src.cc b/llvm/projects/hpvm-tensor-rt/model_params/resnet18_cifar10/src.cc similarity index 100% rename from llvm/projects/hpvm-tensor-rt/model_params/resnet18_cifar10_promise/src.cc rename to llvm/projects/hpvm-tensor-rt/model_params/resnet18_cifar10/src.cc diff --git a/llvm/test/VISC/DNN_Benchmarks/benchmarks/resnet18/src/resnet18.cpp b/llvm/test/VISC/DNN_Benchmarks/benchmarks/resnet18/src/resnet18.cpp index bcb50a83b0..8ea511809e 100644 --- a/llvm/test/VISC/DNN_Benchmarks/benchmarks/resnet18/src/resnet18.cpp +++ b/llvm/test/VISC/DNN_Benchmarks/benchmarks/resnet18/src/resnet18.cpp @@ -1237,7 +1237,7 @@ RootIn; int main(){ - std::string dir_prefix = std::string("../../../../../../projects/hpvm-tensor-rt/model_params/resnet18_cifar10_promise/"); + std::string dir_prefix = std::string("../../../../../../projects/hpvm-tensor-rt/model_params/resnet18_cifar10/"); std::string input_path = dir_prefix + std::string("input.bin"); void* input = readTrainedWeights(input_path.c_str(), 0,5000,3,32,32); diff --git a/llvm/test/VISC/DNN_Benchmarks/benchmarks/resnet18/src/resnet18_loop.cpp b/llvm/test/VISC/DNN_Benchmarks/benchmarks/resnet18/src/resnet18_loop.cpp index c65c6b5a77..9ca1c62733 100644 --- a/llvm/test/VISC/DNN_Benchmarks/benchmarks/resnet18/src/resnet18_loop.cpp +++ b/llvm/test/VISC/DNN_Benchmarks/benchmarks/resnet18/src/resnet18_loop.cpp @@ -1236,7 +1236,7 @@ typedef struct __attribute__((__packed__)) { RootIn; int main(){ - std::string dir_prefix = std::string("../../../../../../projects/hpvm-tensor-rt/model_params/resnet18_cifar10_promise/"); + std::string dir_prefix = std::string("../../../../../../projects/hpvm-tensor-rt/model_params/resnet18_cifar10/"); std::string input_path = dir_prefix + std::string("input.bin"); //void* input = readTrainedWeights(input_path.c_str(), 0,5000,3,32,32); diff --git a/llvm/test/VISC/DNN_Benchmarks/benchmarks/resnet18/src/resnet18_promise.cpp b/llvm/test/VISC/DNN_Benchmarks/benchmarks/resnet18/src/resnet18_promise.cpp index 77c3f68217..83d91ca50f 100644 --- a/llvm/test/VISC/DNN_Benchmarks/benchmarks/resnet18/src/resnet18_promise.cpp +++ b/llvm/test/VISC/DNN_Benchmarks/benchmarks/resnet18/src/resnet18_promise.cpp @@ -1237,8 +1237,7 @@ RootIn; int main(){ - std::string dir_prefix = std::string("../../../../../../projects/hpvm-tensor-rt/model_params/resnet18_cifar10_promise/"); - + std::string dir_prefix = std::string("../../../../../../projects/hpvm-tensor-rt/model_params/resnet18_cifar10/"); std::string input_path = dir_prefix + std::string("input.bin"); void* input = readTrainedWeights(input_path.c_str(), 0,5000,3,32,32); -- GitLab