1#ifndef TENSORBOARD_SERVER_H
2#define TENSORBOARD_SERVER_H
7#include <boost/noncopyable.hpp>
10#include <unordered_map>
31 void init(
const std::string &log_dir);
48 const std::unordered_map<std::string, real_t> &values,
54 void add_text(
const std::string &tag,
const std::string &text,
71 const std::string api_str_;
void add_scalar(const std::string &tag, real_t value, uint_t step_idx=bitsim::consts::INVALID_ID) const
Add scalar.
void close()
Close the TensorboardServer.
TensorboardServer(const std::string &api_url)
Constructor.
std::string_view get_server_address() const noexcept
Return the server address.
Definition tensorboard_server.h:65
void add_text(const std::string &tag, const std::string &text, uint_t step_idx=bitsim::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=bitsim::consts::INVALID_ID) const
Add scalar.
void init(const std::string &log_dir)
Set the log_dir for this instance.
std::string_view get_log_dir_path() const noexcept
Return the directory for logging.
Definition tensorboard_server.h:60
Definition rest_rl_env_client.h:20
Various utilities used when working with RL problems.
Definition bitrl_log.h:25
const uint_t INVALID_ID
Invalid id.
Definition bitsim_consts.h:16
std::size_t uint_t
uint_t
Definition bitsim_types.h:40
double real_t
real_t
Definition bitsim_types.h:20