mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-05-16 21:00:14 +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>
37 lines
1.1 KiB
C++
37 lines
1.1 KiB
C++
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
// Licensed under the MIT License.
|
|
|
|
#pragma once
|
|
|
|
#include "LearningModelEvaluationResult.g.h"
|
|
|
|
namespace WINMLP {
|
|
struct LearningModelEvaluationResult
|
|
: LearningModelEvaluationResultT<LearningModelEvaluationResult, ILearningModelEvaluationResultNative> {
|
|
LearningModelEvaluationResult() = default;
|
|
|
|
hstring CorrelationId();
|
|
void CorrelationId(const hstring& correlationId);
|
|
|
|
int32_t ErrorStatus();
|
|
void ErrorStatus(int32_t errorStatus);
|
|
|
|
bool Succeeded();
|
|
void Succeeded(bool succeeded);
|
|
|
|
wfc::IMapView<hstring, wf::IInspectable> Outputs();
|
|
void Outputs(wfc::IMapView<hstring, wf::IInspectable> outputs);
|
|
|
|
// ILearningModelEvaluationResultNative
|
|
STDMETHOD(GetOutput)
|
|
(const wchar_t* name, UINT32 cchName, IUnknown** result);
|
|
|
|
HRESULT SetOutputs(std::unordered_map<std::string, wf::IInspectable>&& outputs);
|
|
|
|
private:
|
|
hstring m_correlationId;
|
|
int32_t m_errorStatus = 0;
|
|
bool m_succeeded = false;
|
|
std::unordered_map<std::string, wf::IInspectable> m_outputs;
|
|
};
|
|
} // namespace WINMLP
|