pulsatrix
Loading...
Searching...
No Matches
gae.hpp
Go to the documentation of this file.
1
5#pragma once
6
9
10namespace pulsatrix {
11
29
88[[nodiscard]] GAEResult ComputeGAE(const Tensor& rewards, const Tensor& dones, const Tensor& values,
89 float bootstrap_value, float gamma, float lambda, DeviceBackend* backend);
90
91} // namespace pulsatrix
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).