|
bitrl & cuberl Documentation
Simulation engine for reinforcement learning agents
|
class TensorboardServer More...
#include <tensorboard_server.h>


Public Member Functions | |
| TensorboardServer (const std::string &api_url) | |
| Constructor. | |
| void | init (const std::string &log_dir) |
| Set the log_dir for this instance. | |
| void | close () |
| Close the TensorboardServer. | |
| void | add_scalar (const std::string &tag, real_t value, uint_t step_idx=bitrl::consts::INVALID_ID) const |
| Add scalar. | |
| void | add_scalars (const std::string &main_tag, const std::unordered_map< std::string, real_t > &values, uint_t step_idx=bitrl::consts::INVALID_ID) const |
| Add scalar. | |
| void | add_text (const std::string &tag, const std::string &text, uint_t step_idx=bitrl::consts::INVALID_ID) const |
| Add scalar. | |
| std::string_view | get_log_dir_path () const noexcept |
| Return the directory for logging. | |
| std::string_view | get_server_address () const noexcept |
| Return the server address. | |
class TensorboardServer
| bitrl::network::TensorboardServer::TensorboardServer | ( | const std::string & | api_url | ) |
Constructor.
| void bitrl::network::TensorboardServer::add_scalar | ( | const std::string & | tag, |
| real_t | value, | ||
| uint_t | step_idx = bitrl::consts::INVALID_ID |
||
| ) | const |
Add scalar.
| void bitrl::network::TensorboardServer::add_scalars | ( | const std::string & | main_tag, |
| const std::unordered_map< std::string, real_t > & | values, | ||
| uint_t | step_idx = bitrl::consts::INVALID_ID |
||
| ) | const |
Add scalar.
| void bitrl::network::TensorboardServer::add_text | ( | const std::string & | tag, |
| const std::string & | text, | ||
| uint_t | step_idx = bitrl::consts::INVALID_ID |
||
| ) | const |
Add scalar.
| void bitrl::network::TensorboardServer::close | ( | ) |
Close the TensorboardServer.
|
inlinenoexcept |
Return the directory for logging.
|
inlinenoexcept |
Return the server address.
| void bitrl::network::TensorboardServer::init | ( | const std::string & | log_dir | ) |
Set the log_dir for this instance.