89 float bootstrap_value,
float gamma,
float lambda,
DeviceBackend* backend);
Vendor-agnostic compute/memory backend. CPUBackend, CUDABackend (Phase 1.5), and HIPBackend (Phase 1....
Definition device_backend.hpp:219
N-dimensional tensor. Owns its data buffer exclusively; a DeviceBackend* is injected (not owned) – th...
Definition tensor.hpp:29
Abstract interface isolating vendor-specific memory/compute operations from Tensor/ComputationGraph.
Definition acquisition_functions.hpp:16
GAEResult ComputeGAE(const Tensor &rewards, const Tensor &dones, const Tensor &values, float bootstrap_value, float gamma, float lambda, DeviceBackend *backend)
Generalized Advantage Estimation (Schulman et al. 2016, arXiv:1506.02438): the exponentially-weighted...
ComputeGAE()'s two outputs: the advantage estimate per step and the critic's regression target per st...
Definition gae.hpp:22
Tensor returns
A_t + V(s_t) – the critic's regression target. Deliberately not the raw Monte-Carlo return RolloutBuf...
Definition gae.hpp:27
Tensor advantages
A_t – the GAE(gamma, lambda) advantage estimate, the actor's per-step weight.
Definition gae.hpp:24
N-dimensional tensor – owns a buffer via DeviceBackend*, RAII (Rule of Five).