tensorflow/core/kernels/quantization_utils_test.cc
// Verify that QuantizedToFloatInPlaceUsingEigen is same result as
// QuantizedToFloat.
Verify that QuantizedToFloatInPlaceUsingEigen is same result as
QuantizedToFloat.
Verify that QuantizedToFloatInPlaceUsingEigen is same result as QuantizedToFloat .
void TestQuantizedToFloatInPlaceUsingEigen() {
  thread::ThreadPool threadpool(Env::Default(), "test", 2 );
  Eigen::ThreadPoolDevice eigen_device(threadpool.AsEigenThreadPool(),
                                       2 );
  TestQuantizedToFloatInPlaceUsingEigen<quint8>(&eigen_device);
  TestQuantizedToFloatInPlaceUsingEigen<qint8>(&eigen_device);
  TestQuantizedToFloatInPlaceUsingEigen<quint16>(&eigen_device);
  TestQuantizedToFloatInPlaceUsingEigen<qint16>(&eigen_device);
  TestQuantizedToFloatInPlaceUsingEigen<qint32>(&eigen_device);
}
void TestQuantizedToFloatInPlaceUsingEigen ( ) { thread :: ThreadPool threadpool ( Env :: Default ( ) , " " , 2 ) ; Eigen :: ThreadPoolDevice eigen_device ( threadpool . AsEigenThreadPool ( ) , 2 ) ; TestQuantizedToFloatInPlaceUsingEigen < quint8 > ( & eigen_device ) ; TestQuantizedToFloatInPlaceUsingEigen < qint8 > ( & eigen_device ) ; TestQuantizedToFloatInPlaceUsingEigen < quint16 > ( & eigen_device ) ; TestQuantizedToFloatInPlaceUsingEigen < qint16 > ( & eigen_device ) ; TestQuantizedToFloatInPlaceUsingEigen < qint32 > ( & eigen_device ) ; }
Verify that QuantizedToFloatInPlaceUsingEigen is same result as
QuantizedToFloat.
Verify that QuantizedToFloatInPlaceUsingEigen is same result as QuantizedToFloat .
/* num_threads */ /* num_threads */