onnxruntime/winml/lib/Api.Ort/OnnxruntimeSessionBuilder.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

29 lines
832 B
C++

// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
#pragma once
namespace _winml {
// clang-format off
// The IOrtSessionBuilder offers an abstraction over the creation of
// InferenceSession, that enables the creation of the session based on a device (CPU/DML).
MIDL_INTERFACE("2746f03a-7e08-4564-b5d0-c670fef116ee")
IOrtSessionBuilder : IUnknown {
virtual HRESULT STDMETHODCALLTYPE CreateSessionOptions(
OrtSessionOptions** options) = 0;
virtual HRESULT STDMETHODCALLTYPE CreateSession(
OrtSessionOptions * options,
OrtThreadPool* inter_op_thread_pool,
OrtThreadPool* intra_op_thread_pool,
OrtSession** session) = 0;
virtual HRESULT STDMETHODCALLTYPE Initialize(
OrtSession * session) = 0;
};
// clang-format on
} // namespace _winml