Searched refs:sum_abs_diff (Results 1 – 6 of 6) sorted by relevance
50 double sum_abs_diff = 0; in TestOneDepthwiseConv() local53 sum_abs_diff += std::abs(output_data[i] - reference_output_data[i]); in TestOneDepthwiseConv()56 if (sum_abs_diff != 0.f) { in TestOneDepthwiseConv()58 static_cast<float>(sum_abs_diff / output_buffer_size); in TestOneDepthwiseConv()
73 int64_t sum_abs_diff = 0; in CheckOutputData() local77 sum_abs_diff += std::abs(diff[i]); in CheckOutputData()85 const float mean_abs_diff = static_cast<float>(sum_abs_diff) / buffer_size; in CheckOutputData()
109 int64_t sum_abs_diff = 0; in CheckOutputData() local113 sum_abs_diff += std::abs(diff[i]); in CheckOutputData()121 const float mean_abs_diff = static_cast<float>(sum_abs_diff) / buffer_size; in CheckOutputData()
149 std::int64_t sum_abs_diff = 0; in CompareRoundingResults() local154 sum_abs_diff += std::abs(diff[i]); in CompareRoundingResults()162 const float mean_abs_diff = static_cast<float>(sum_abs_diff) / flat_size; in CompareRoundingResults()
674 std::int64_t sum_abs_diff = 0; in TestOneDepthwiseConvWithGivenOutputShift() local679 sum_abs_diff += std::abs(diff[i]); in TestOneDepthwiseConvWithGivenOutputShift()690 static_cast<float>(sum_abs_diff) / output_buffer_size; in TestOneDepthwiseConvWithGivenOutputShift()
161 double sum_abs_diff = 0; in ComputeErrorStats() local171 sum_abs_diff += std::abs(diff); in ComputeErrorStats()176 error_stats->mean_abs_diff = sum_abs_diff / actual.size(); in ComputeErrorStats()