onnxruntime/winml/lib/Api.Experimental/LearningModelJoinOptions.h
Justin Chu 416dc2e84d
Fix clang-format comment indents on Windows for winml/ (#17144)
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.
2023-08-14 23:50:14 -04:00

36 lines
1.1 KiB
C++

#pragma once
#include "LearningModelJoinOptions.g.h"
namespace WINML_EXPERIMENTALP {
struct LearningModelJoinOptions : LearningModelJoinOptionsT<LearningModelJoinOptions> {
LearningModelJoinOptions();
bool PromoteUnlinkedOutputsToFusedOutputs();
void PromoteUnlinkedOutputsToFusedOutputs(bool value);
winrt::hstring JoinedNodePrefix();
void JoinedNodePrefix(hstring const& join_prefix);
bool CloseModelOnJoin();
void CloseModelOnJoin(bool value);
void Link(hstring const& firstModelOutput, hstring const& secondModelInput);
public:
const std::unordered_map<std::string, std::string>& GetLinkages();
private:
bool promote_unlinked_outputs_ = true;
bool promote_unlinked_inputs_ = true;
bool close_model_on_link_ = false;
std::unordered_map<std::string, std::string> linkages_;
std::string join_prefix_;
};
} // namespace WINML_EXPERIMENTALP
namespace WINML_EXPERIMENTAL::factory_implementation {
struct LearningModelJoinOptions
: LearningModelJoinOptionsT<LearningModelJoinOptions, implementation::LearningModelJoinOptions> {};
} // namespace WINML_EXPERIMENTAL::factory_implementation