bitsim
Model, simulate, estimate and control robots in C++
Loading...
Searching...
No Matches
ppo_cartpole::CriticImpl Struct Reference
Inheritance diagram for ppo_cartpole::CriticImpl:
Collaboration diagram for ppo_cartpole::CriticImpl:

Public Member Functions

 CriticImpl ()
torch_tensor_t forward (torch_tensor_t states)
torch_tensor_t evaluate (const std::vector< real_t > &state)

Public Attributes

torch::nn::Linear fc1
torch::nn::Linear fc2
torch::nn::Linear value

Constructor & Destructor Documentation

◆ CriticImpl()

ppo_cartpole::CriticImpl::CriticImpl ( )
inline

Member Function Documentation

◆ evaluate()

torch_tensor_t ppo_cartpole::CriticImpl::evaluate ( const std::vector< real_t > & state)
inline

◆ forward()

torch_tensor_t ppo_cartpole::CriticImpl::forward ( torch_tensor_t states)
inline

Member Data Documentation

◆ fc1

torch::nn::Linear ppo_cartpole::CriticImpl::fc1

◆ fc2

torch::nn::Linear ppo_cartpole::CriticImpl::fc2

◆ value

torch::nn::Linear ppo_cartpole::CriticImpl::value

The documentation for this struct was generated from the following file: