Caffe2 - C++ API
A deep learning, cross platform ML framework
Exceptions.h
1 #pragma once
2 
3 #include <string>
4 #include <stdexcept>
5 #include <sstream>
6 #include <mkl_dfti.h>
7 
8 namespace at { namespace native {
9 
10 static inline void MKL_DFTI_CHECK(MKL_INT status)
11 {
12  if (status && !DftiErrorClass(status, DFTI_NO_ERROR)) {
13  std::ostringstream ss;
14  ss << "MKL FFT error: " << DftiErrorMessage(status);
15  throw std::runtime_error(ss.str());
16  }
17 }
18 
19 }} // namespace at::native
Flush-To-Zero and Denormals-Are-Zero mode.