#include <TorchPolicy.h>
|
torch::jit::script::Module | module |
|
ControlPolicy backed by a scripted torch module.
Definition at line 44 of file TorchPolicy.h.
◆ TorchPolicy()
Rcs::TorchPolicy::TorchPolicy |
( |
const char * |
filename | ) |
|
◆ ~TorchPolicy()
Rcs::TorchPolicy::~TorchPolicy |
( |
| ) |
|
|
virtual |
◆ computeAction()
void Rcs::TorchPolicy::computeAction |
( |
MatNd * |
action, |
|
|
const MatNd * |
observation |
|
) |
| |
|
virtual |
Compute the action according to the policy.
- Parameters
-
[out] | action | matrix to store the action in |
[in] | observation | current observed state |
Implements Rcs::ControlPolicy.
Definition at line 64 of file TorchPolicy.cpp.
◆ reset()
void Rcs::TorchPolicy::reset |
( |
| ) |
|
|
virtual |
◆ module
torch::jit::script::Module Rcs::TorchPolicy::module |
|
private |
The documentation for this class was generated from the following files: