pulsatrix
Loading...
Searching...
No Matches
agent.hpp
Go to the documentation of this file.
1
5#pragma once
6
8
9namespace pulsatrix {
10
24class Agent {
25public:
26 virtual ~Agent() = default;
27
37 [[nodiscard]] virtual Tensor act(const Tensor& observation) = 0;
38};
39
40} // namespace pulsatrix
Base class for anything that maps an observation to an action.
Definition agent.hpp:24
virtual Tensor act(const Tensor &observation)=0
Chooses an action for the given observation.
virtual ~Agent()=default
N-dimensional tensor. Owns its data buffer exclusively; a DeviceBackend* is injected (not owned) – th...
Definition tensor.hpp:29
Definition acquisition_functions.hpp:16
N-dimensional tensor – owns a buffer via DeviceBackend*, RAII (Rule of Five).