Turi Create  4.0
mlmodel_include.hpp
1 /* Copyright © 2017 Apple Inc. All rights reserved.
2  *
3  * Use of this source code is governed by a BSD-3-clause license that can
4  * be found in the LICENSE.txt file or at https://opensource.org/licenses/BSD-3-Clause
5  */
6 #ifndef COREML_MLMODEL_HPP
7 #define COREML_MLMODEL_HPP
8 
9 #if defined(__GNUC__)
10  #pragma GCC diagnostic push
11  #pragma GCC diagnostic ignored "-Wreturn-type"
12  #pragma GCC diagnostic ignored "-Wunused-function"
13 #elif defined (__clang__)
14  #pragma clang diagnostic push
15  #pragma clang diagnostic ignored "-Wsign-conversion"
16  #pragma clang diagnostic ignored "-Wunused-parameter"
17  #pragma clang diagnostic ignored "-Wshorten-64-to-32"
18  #pragma clang diagnostic ignored "-Wshadow"
19  #pragma clang diagnostic ignored "-Wextended-offsetof"
20 #endif
21 
22 #pragma push_macro("CHECK")
23 #undef CHECK
24 
25 // Include this first. We need to undefine some defines here.
26 #include <coremltools/mlmodel/src/transforms/TreeEnsemble.hpp>
27 #include <coremltools/mlmodel/src/transforms/Pipeline.hpp>
28 
29 #include <coremltools/mlmodel/src/transforms/OneHotEncoder.hpp>
30 #include <coremltools/mlmodel/src/transforms/FeatureVectorizer.hpp>
31 #include <coremltools/mlmodel/src/transforms/DictVectorizer.hpp>
32 #include <coremltools/mlmodel/src/transforms/LinearModel.hpp>
33 
34 
35 
36 #ifdef MAX
37 #undef MAX
38 #endif
39 
40 #ifdef MIN
41 #undef MIN
42 #endif
43 
44 #pragma pop_macro("CHECK")
45 
46 #if defined(__GNUC__)
47  #pragma GCC diagnostic pop
48 #elif defined (__clang__)
49  #pragma clang diagnostic pop
50 #endif
51 
52 #endif