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

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