Caffe2 - C++ API
A deep learning, cross platform ML framework
l2_minimization.h
1 #pragma once
2 
3 #include "quantization_error_minimization.h"
4 
5 #include <algorithm>
6 #include <cassert>
7 #include <cmath>
8 #include <iostream>
9 #include <limits>
10 
11 namespace dnnlowp {
12 
17  public:
19 };
20 
21 namespace internal {
22 
23 float L2MinimizationKernelAVX2(
24  int precision,
25  float* bins,
26  int nbins,
27  float bin_width,
28  float dst_bin_width,
29  int start_bin);
30 
31 } // namespace internal
32 
33 } // namespace dnnlowp
A quantization scheme that minimizes L2 norm of quantization error.