mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-05-15 20:50:42 +00:00
On Windows, clang-format has a bug when AlignTrailingComments.Kind is set to `Leave` (https://clang.llvm.org/docs/ClangFormatStyleOptions.html#aligntrailingcomments), where it will keep adding indentation to comments after each formatting runs. This PR changes to always align comments so we do not hit the bug. As a consequence of the options change we need to reformat some of the files. Note that this option is aligned with the rest of the repository.
30 lines
974 B
C++
30 lines
974 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
|