onnxruntime/winml/lib/Api.Experimental/LearningModelExperimental.h
Justin Chu eeef157888
Format c++ code under winml/ (#16660)
winml/ was previously excluded from lintrunner config. This change
includes the directory and adds the clang-format config file specific to
winml/ that fits existing style.

---------

Signed-off-by: Justin Chu <justinchu@microsoft.com>
2023-07-25 21:56:50 -07:00

30 lines
970 B
C++

#pragma once
#include "LearningModelExperimental.g.h"
namespace WINML_EXPERIMENTALP {
struct LearningModelExperimental : LearningModelExperimentalT<LearningModelExperimental> {
LearningModelExperimental() = default;
LearningModelExperimental(Microsoft::AI::MachineLearning::LearningModel const& model);
Microsoft::AI::MachineLearning::LearningModel JoinModel(
Microsoft::AI::MachineLearning::LearningModel const& other,
Microsoft::AI::MachineLearning::Experimental::LearningModelJoinOptions const& options
);
void Save(hstring const& file_name);
void SetName(hstring const& model_name);
private:
Microsoft::AI::MachineLearning::LearningModel model_;
};
}// namespace WINML_EXPERIMENTALP
namespace WINML_EXPERIMENTAL::factory_implementation {
struct LearningModelExperimental
: LearningModelExperimentalT<LearningModelExperimental, implementation::LearningModelExperimental> {};
}// namespace WINML_EXPERIMENTAL::factory_implementation