diff options
author | Alexey Suhov <asuhov@users.noreply.github.com> | 2018-11-23 16:19:43 +0300 |
---|---|---|
committer | openvino-pushbot <44090433+openvino-pushbot@users.noreply.github.com> | 2018-11-23 16:19:43 +0300 |
commit | 55a41d7570f78aaea0d6764d157dd7434730d56f (patch) | |
tree | ba022c71609b93d51119bcb25e5ccb8c7147dbd3 /inference-engine/thirdparty/clDNN/tests/test_utils/instrumentation.cpp | |
parent | 54eab180361ec09fbd82e2bb62adfeb521275774 (diff) | |
download | dldt-55a41d7570f78aaea0d6764d157dd7434730d56f.tar.gz dldt-55a41d7570f78aaea0d6764d157dd7434730d56f.tar.bz2 dldt-55a41d7570f78aaea0d6764d157dd7434730d56f.zip |
Publishing R4 (#41)
* Publishing R4
Diffstat (limited to 'inference-engine/thirdparty/clDNN/tests/test_utils/instrumentation.cpp')
-rw-r--r-- | inference-engine/thirdparty/clDNN/tests/test_utils/instrumentation.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/inference-engine/thirdparty/clDNN/tests/test_utils/instrumentation.cpp b/inference-engine/thirdparty/clDNN/tests/test_utils/instrumentation.cpp index bcea392a6..e9c5ba27d 100644 --- a/inference-engine/thirdparty/clDNN/tests/test_utils/instrumentation.cpp +++ b/inference-engine/thirdparty/clDNN/tests/test_utils/instrumentation.cpp @@ -21,12 +21,10 @@ #include <string> #include <vector> #include <iostream> -#include <boost/filesystem.hpp> - namespace instrumentation { // initalize dumping directory for whole run - const std::string logger::dump_dir = "memory_dumps/" + std::to_string(std::chrono::system_clock::to_time_t(std::chrono::system_clock::now())); + const std::string logger::dump_dir = DUMP_DIRECTORY; static float convert_half_to_float(half_t val, bool flush_denorm_to_zero = false) { @@ -399,7 +397,6 @@ namespace instrumentation { void logger::log_memory_to_file(const cldnn::memory& mem, std::string prefix, bool single_batch, cldnn::tensor::value_type batch_id, bool single_feature, cldnn::tensor::value_type feature_id) { - boost::filesystem::create_directories(dump_dir); auto batch = mem.get_layout().size.batch[0]; auto feature = mem.get_layout().size.feature[0]; auto eng_type = "gpu" ; @@ -429,7 +426,6 @@ namespace instrumentation { void logger::log_weights_to_file(const cldnn::memory& mem, std::string prefix) { - boost::filesystem::create_directories(dump_dir); std::stringstream stream; if (mem.get_layout().data_type == cldnn::data_types::f32) @@ -438,7 +434,7 @@ namespace instrumentation { dump<half_t>(mem, stream); std::string filename((dump_dir + "/" + prefix + ".txt")); - std::ofstream file_stream = std::ofstream(filename, std::ios::out); + std::ofstream file_stream(filename); file_stream << stream.str(); file_stream.close(); } |