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 4b0df0f28ee8108bbcd47356f26d577929836f2a..9779b95d865d1939244f50c3910d7ed770b0729d 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 261753c1a98a1bb000f842a2cdee406c6a6fa7a3..2ade8b6090d69d733399a399619442cede2bfde9 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 bc3022234a97f8ef00055c5491145bde43a2c88b..b0c868085bae1abc2025364609114cc21c7d213a 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 bcb50a83b07570b966dbb4bbbe3b6abe0ca30d7a..8ea511809e9d2e85a2d6589d87319464bc2123c7 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 c65c6b5a774d1a8c46b746cbd7afda4cb705ae1b..9ca1c627334fa3005c602ee96df63adbca8c969d 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 77c3f6821747dbb81530d157439ea1554b52a751..83d91ca50f30b27445f1ee1805927771be5f27ed 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);