Turi Create  4.0
coreml_export_utils.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_EXPORT_UTILS_HPP
7 #define COREML_EXPORT_UTILS_HPP
8 #include <memory>
9 #include <toolkits/coreml_export/mlmodel_include.hpp>
10 #include <core/data/flexible_type/flexible_type.hpp>
11 
12 namespace turi {
13 
14 /**
15  * Add short description, metadata to the model.
16  *
17  * \param[in] model CoreML specification model
18  * \param[in] context Dictionary of context passed from python.
19  */
20 void add_metadata(CoreML::Specification::Model& model_spec,
21  const std::map<std::string, flexible_type>& context);
22 
23 
24 }
25 
26 #endif
void add_metadata(CoreML::Specification::Model &model_spec, const std::map< std::string, flexible_type > &context)