mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-05-28 22:56:32 +00:00
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>
33 lines
919 B
C++
33 lines
919 B
C++
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
// Licensed under the MIT License.
|
|
|
|
#pragma once
|
|
|
|
#include "OnnxruntimeSessionBuilder.h"
|
|
|
|
namespace _winml {
|
|
|
|
class OnnxruntimeEngineFactory;
|
|
|
|
class OnnxruntimeCpuSessionBuilder
|
|
: public Microsoft::WRL::
|
|
RuntimeClass<Microsoft::WRL::RuntimeClassFlags<Microsoft::WRL::ClassicCom>, IOrtSessionBuilder> {
|
|
public:
|
|
HRESULT RuntimeClassInitialize(OnnxruntimeEngineFactory* engine_factory);
|
|
|
|
HRESULT STDMETHODCALLTYPE CreateSessionOptions(OrtSessionOptions** options) override;
|
|
|
|
HRESULT STDMETHODCALLTYPE CreateSession(
|
|
OrtSessionOptions* options,
|
|
OrtThreadPool* inter_op_thread_pool,
|
|
OrtThreadPool* intra_op_thread_pool,
|
|
OrtSession** session
|
|
) override;
|
|
|
|
HRESULT STDMETHODCALLTYPE Initialize(OrtSession* session) override;
|
|
|
|
private:
|
|
Microsoft::WRL::ComPtr<OnnxruntimeEngineFactory> engine_factory_;
|
|
};
|
|
|
|
} // namespace _winml
|