mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-07-01 03:45:06 +00:00
38 lines
1 KiB
C++
38 lines
1 KiB
C++
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
// Licensed under the MIT License.
|
|
|
|
#include "core/session/inference_session.h"
|
|
#include "core/framework/op_kernel.h"
|
|
#include "core/framework/session_state.h"
|
|
#include "core/graph/graph_viewer.h"
|
|
#include "core/graph/model.h"
|
|
#include "core/graph/op.h"
|
|
#include "core/providers/cpu/cpu_execution_provider.h"
|
|
#include "gtest/gtest.h"
|
|
#include "test_utils.h"
|
|
using namespace std;
|
|
using namespace ONNX_NAMESPACE;
|
|
|
|
namespace onnxruntime {
|
|
using namespace logging;
|
|
|
|
namespace test {
|
|
|
|
class XPUExecutionProvider : public IExecutionProvider {
|
|
public:
|
|
XPUExecutionProvider() : IExecutionProvider{onnxruntime::kCpuExecutionProvider} {}
|
|
|
|
Status CopyTensor(const Tensor& src, Tensor& dst) const override {
|
|
ORT_UNUSED_PARAMETER(src);
|
|
ORT_UNUSED_PARAMETER(dst);
|
|
return Status::OK();
|
|
}
|
|
|
|
virtual const void* GetExecutionHandle() const noexcept override {
|
|
// The XPU interface does not return anything interesting.
|
|
return nullptr;
|
|
}
|
|
};
|
|
|
|
} // namespace test
|
|
} // namespace onnxruntime
|