Skip to content

Commit

Permalink
Debug info
Browse files Browse the repository at this point in the history
  • Loading branch information
v-Golubev committed Oct 10, 2024
1 parent a1ef9da commit 3c1e87c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ static inline std::vector<std::vector<element::Type>> quantized_precisions() {

static inline std::vector<std::vector<element::Type>> precisions() {
std::vector<std::vector<element::Type>> prc = {
// {element::f32, element::f32},
{element::f32, element::f32},
};
// Note: TPP doesn't support low precisions yet
#ifndef SNIPPETS_LIBXSMM_TPP
Expand All @@ -42,8 +42,13 @@ static inline std::vector<std::vector<element::Type>> precisions() {
}


size_t K = std::getenv("K") ? std::atoi(std::getenv("K")) : 2;
size_t N = std::getenv("N") ? std::atoi(std::getenv("N")) : 32;
size_t B1 = std::getenv("B1") ? std::atoi(std::getenv("B1")) : 1;
size_t B2 = std::getenv("B2") ? std::atoi(std::getenv("B2")) : 1;

std::vector<std::vector<ov::test::InputShape>> input_shapes{
{ {{}, {{2, 1, 2, 4}}}, {{}, {{2, 1, 4, 108}}} },
{ {{}, {{B1, 1, 1, K}}}, {{}, {{1, B2, K, N}}} },
/*
{ {{}, {{2, 1, 3, 5}}}, {{}, {{1, 3, 5, 3}}} },
{ {{}, {{3, 1, 32, 14}}}, {{}, {{1, 3, 14, 37}}} },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -444,9 +444,9 @@ class Error {
<< " Diff: " << std::fabs(val.expected_value - val.actual_value)
<< " calculated_abs_threshold: " << val.threshold << " abs_threshold: " << abs_threshold
<< " rel_threshold: " << rel_threshold << "\n";
#ifdef NDEBUG
// #ifdef NDEBUG
break;
#endif
// #endif
}
throw std::runtime_error(msg);
} else if (!less_or_equal(mvn_results, mvn_threshold)) {
Expand Down

0 comments on commit 3c1e87c

Please sign in to comment.