载入中...
搜索中...
未找到
TensorBackend.h
浏览该文件的文档.
1#pragma once
2
3#include <memory>
4#include "common/Export.h"
5#include "common/Result.h"
6
7namespace eve::agent {
8class IPolicyBackend;
9class IGpuPolicyBackend;
15[[nodiscard]] EVENGINE_API_ORCHESTRATION Result<std::unique_ptr<IPolicyBackend>> makeTensorBackend();
20[[nodiscard]] Result<std::unique_ptr<IGpuPolicyBackend>> makeGpuBackend();
21} // namespace eve::agent
#define EVENGINE_API_ORCHESTRATION
Definition Export.h:111
Move-only, checked operation results for the common layer.
Result< std::unique_ptr< IGpuPolicyBackend > > makeGpuBackend()
Create an owning GPU provider; compile lazily on the device owner thread.
Result< std::unique_ptr< IPolicyBackend > > makeTensorBackend()
Create an owning tensor eager CPU inference provider; caller owns registration.