onnxruntime/winml/lib/Api.Experimental/LearningModelSessionOptionsExperimental.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

28 lines
1.1 KiB
C++

#pragma once
#include "LearningModelSessionOptionsExperimental.g.h"
namespace WINML_EXPERIMENTALP {
struct LearningModelSessionOptionsExperimental
: LearningModelSessionOptionsExperimentalT<LearningModelSessionOptionsExperimental> {
LearningModelSessionOptionsExperimental(const winml::LearningModelSessionOptions& options);
LearningModelSessionOptionsExperimental(const winml::LearningModelSession& session);
wfc::IMapView<winrt::hstring, uint32_t> GetNamedDimensionOverrides();
void RegisterCustomOpsLibrary(const hstring& path);
private:
wfc::IMapView<winrt::hstring, uint32_t> overrides_;
winml::LearningModelSessionOptions options_;
};
} // namespace WINML_EXPERIMENTALP
namespace WINML_EXPERIMENTAL::factory_implementation {
struct LearningModelSessionOptionsExperimental : LearningModelSessionOptionsExperimentalT<
LearningModelSessionOptionsExperimental,
implementation::LearningModelSessionOptionsExperimental> {};
} // namespace WINML_EXPERIMENTAL::factory_implementation