载入中...
搜索中...
未找到
eve::agent::IPolicyBackend类 参考abstract

Optional inference service. Providers own their registration and revoke before destruction. @thread Owner thread only; no reentry, provider unload or external callbacks during inference. @ownership Inputs are borrowed only for the call. Outputs own all data. Core resolves the capability anew for each inference; it never retains a provider across environment callbacks. 更多...

#include <Agent.h>

类 eve::agent::IPolicyBackend 继承关系图:
eve::agent::IGpuPolicyBackend

Public 成员函数

virtual ~IPolicyBackend ()=default
 Releases IPolicyBackend resources.
 
virtual std::string name () const =0
 Owning device/backend label; must describe the actual execution path.
 
virtual Result< std::vector< double > > evaluate (const Policy &policy, const Observation &observation)=0
 Evaluate inputs validated by agent::infer; return masked probabilities or structured failure.
 

静态 Public 属性

static constexpr const char * capabilityName = "agent.IPolicyBackend"
 

详细描述

Optional inference service. Providers own their registration and revoke before destruction. @thread Owner thread only; no reentry, provider unload or external callbacks during inference. @ownership Inputs are borrowed only for the call. Outputs own all data. Core resolves the capability anew for each inference; it never retains a provider across environment callbacks.

在文件 Agent.h 第 114 行定义.

构造及析构函数说明

◆ ~IPolicyBackend()

virtual eve::agent::IPolicyBackend::~IPolicyBackend ( )
virtualdefault

Releases IPolicyBackend resources.

成员函数说明

◆ evaluate()

virtual Result< std::vector< double > > eve::agent::IPolicyBackend::evaluate ( const Policy &  policy,
const Observation &  observation 
)
pure virtual

Evaluate inputs validated by agent::infer; return masked probabilities or structured failure.

被这些函数引用 eve::agent::infer().

◆ name()

virtual std::string eve::agent::IPolicyBackend::name ( ) const
pure virtual

Owning device/backend label; must describe the actual execution path.

类成员变量说明

◆ capabilityName

constexpr const char* eve::agent::IPolicyBackend::capabilityName = "agent.IPolicyBackend"
staticconstexpr

在文件 Agent.h 第 116 行定义.


该类的文档由以下文件生成: