Fix error in image-classification-tflite/benchmark.h
@@ -91,18 +91,6 @@ inline std::string format(const char* str, Args ...args) {
return std::string(buf);
}
-std::string abs_path(std::string path_name, std::string file_name) {
-#ifdef _WIN32
- std::string delimiter = "\\";
-#else
- std::string delimiter = "/";
-#endif
- if (path_name.back()=='\\' || path_name.back()=='/') {
- return path_name + file_name;
- }
- return path_name + delimiter + file_name;
-}
-
//----------------------------------------------------------------------
class Accumulator {
@@ -121,7 +109,7 @@ private:
class BenchmarkSettings {
public:
const std::string images_dir = getenv_s("CK_ENV_DATASET_IMAGENET_PREPROCESSED_DIR");
- const std::string images_file = abs_path(images_dir, getenv_s("CK_ENV_DATASET_IMAGENET_PREPROCESSED_SUBSET_FOF"));
+ const std::string images_file = getenv_s("CK_ENV_DATASET_IMAGENET_PREPROCESSED_SUBSET_FOF");
const std::string result_dir = getenv_s("CK_RESULTS_DIR");
const std::string input_layer_name = getenv_s("CK_ENV_TENSORFLOW_MODEL_INPUT_LAYER_NAME");
const std::string output_layer_name = getenv_s("CK_ENV_TENSORFLOW_MODEL_OUTPUT_LAYER_NAME");
