Skip to content

Commit

Permalink
Hide logs
Browse files Browse the repository at this point in the history
  • Loading branch information
nshchego committed Oct 29, 2024
1 parent febe112 commit 6ff2a23
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
14 changes: 7 additions & 7 deletions src/core/src/pass/serialize.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -105,21 +105,21 @@ class ConstantWriter {
new_size = size;

if (!m_enable_compression) {
printf("FilePosition::write NOT m_enable_compression\n");
// printf("FilePosition::write NOT m_enable_compression\n");
if (!compress_to_fp16) {
m_binary_output.write(ptr, size);
} else {
printf("FilePosition::write compress_to_fp16\n");
// printf("FilePosition::write compress_to_fp16\n");
OPENVINO_ASSERT(size % src_type.size() == 0);
auto fp16_buffer = compress_data_to_fp16(ptr, size, src_type, new_size);
m_binary_output.write(fp16_buffer.get(), new_size);
}
return offset;
} else {
printf("FilePosition::write m_enable_compression\n");
// printf("FilePosition::write m_enable_compression\n");
std::unique_ptr<char[]> fp16_buffer = nullptr;
if (compress_to_fp16) {
printf("FilePosition::write compress_to_fp16\n");
// printf("FilePosition::write compress_to_fp16\n");
OPENVINO_ASSERT(size % src_type.size() == 0);
fp16_buffer = compress_data_to_fp16(ptr, size, src_type, new_size);
}
Expand Down Expand Up @@ -1210,7 +1210,7 @@ void serializeFunc(std::ostream& xml_file,
std::shared_ptr<ov::Model> model,
ov::pass::Serialize::Version ver,
bool deterministic = false) {
printf("serializeFunc\n");
// printf("serializeFunc\n");
auto version = static_cast<int64_t>(ver);

auto& rt_info = model->get_rt_info();
Expand Down Expand Up @@ -1427,7 +1427,7 @@ class OstreamHashWrapper final : public std::streambuf {
}

std::streamsize xsputn(const char* s, std::streamsize n) override {
printf("OstreamHashWrapper xsputn\n");
// printf("OstreamHashWrapper xsputn\n");
uint64_t h = ov::runtime::compute_hash(s, n);
m_res = hash_combine(m_res, h);

Expand All @@ -1437,7 +1437,7 @@ class OstreamHashWrapper final : public std::streambuf {
} // namespace

std::streamsize OstreamHashWrapperBin::xsputn(const char* s, std::streamsize n) {
printf("OstreamHashWrapperBin xsputn\n");
// printf("OstreamHashWrapperBin xsputn\n");
m_res = hash_combine(m_res, *reinterpret_cast<const uint64_t*>(s));
return n;
}
Expand Down
2 changes: 1 addition & 1 deletion src/core/src/runtime/compute_hash.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -821,7 +821,7 @@ void ComputeHash<isa>::fold_to_64(const Vmm& v_dst) {
#endif // OV_CORE_USE_XBYAK_JIT

size_t compute_hash(const void* src, size_t size) {
std::cout << " compute_hash " << size << std::endl;
// std::cout << " compute_hash " << size << std::endl;
#ifdef OV_CORE_USE_XBYAK_JIT
if (Generator::mayiuse(avx2)) {
uint64_t result = 0lu;
Expand Down

0 comments on commit 6ff2a23

Please sign in to comment.