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

Public Member Functions

 ActorImpl (uint_t seed=SEED)
torch_tensor_t forward (torch_tensor_t states)
std::tuple< torch_tensor_t, torch_tensor_t > act_batch (torch_tensor_t states)
std::tuple< torch_tensor_t, torch_tensor_t, torch_tensor_t > evaluate (torch_tensor_t states, torch_tensor_t actions)
uint_t greedy (const std::vector< real_t > &state)

Public Attributes

torch::nn::Linear fc1
torch::nn::Linear fc2
torch::nn::Linear logits
at::Generator generator

Constructor & Destructor Documentation

◆ ActorImpl()

ppo_distributed::ActorImpl::ActorImpl ( uint_t seed = SEED)
inlineexplicit

Member Function Documentation

◆ act_batch()

std::tuple< torch_tensor_t, torch_tensor_t > ppo_distributed::ActorImpl::act_batch ( torch_tensor_t states)
inline

◆ evaluate()

std::tuple< torch_tensor_t, torch_tensor_t, torch_tensor_t > ppo_distributed::ActorImpl::evaluate ( torch_tensor_t states,
torch_tensor_t actions )
inline

◆ forward()

torch_tensor_t ppo_distributed::ActorImpl::forward ( torch_tensor_t states)
inline

◆ greedy()

uint_t ppo_distributed::ActorImpl::greedy ( const std::vector< real_t > & state)
inline

Member Data Documentation

◆ fc1

torch::nn::Linear ppo_distributed::ActorImpl::fc1

◆ fc2

torch::nn::Linear ppo_distributed::ActorImpl::fc2

◆ generator

at::Generator ppo_distributed::ActorImpl::generator

◆ logits

torch::nn::Linear ppo_distributed::ActorImpl::logits

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