onnxruntime/winml/test/api/RawApiHelpers.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

20 lines
547 B
C

// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
#include "microsoft.ai.machinelearning.h"
#include "microsoft.ai.machinelearning.native.h"
#include "raw/microsoft.ai.machinelearning.h"
#include "raw/microsoft.ai.machinelearning.gpu.h"
enum class InputStrategy {
CopyInputs,
BindAsReference,
BindWithMultipleReferences
};
void RunOnDevice(
Microsoft::AI::MachineLearning::learning_model& model,
Microsoft::AI::MachineLearning::learning_model_device& device,
InputStrategy strategy
);