onnxruntime/winml/lib/Api.Experimental/LearningModelExperimental.h
Sheil Kumar a17bdaf725
Enable JoinModels API in WinML+RT Experimental API (#9746)
* Dynamic onnx model fusion

* empty node names shoudl remain empty

* comments and cleanup

* logic reversed for promoting_unlined_outputs

* PR feedback

* type

* typo

* fix model outputs with promote unlinked output

* remove disembodied model

Co-authored-by: Sheil Kumar <sheilk@microsoft.com>
2021-11-12 16:56:31 -08:00

27 lines
835 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);
private:
Microsoft::AI::MachineLearning::LearningModel model_;
};
}
namespace WINML_EXPERIMENTAL::factory_implementation {
struct LearningModelExperimental : LearningModelExperimentalT<LearningModelExperimental, implementation::LearningModelExperimental>
{
};
}