rlmesh::SessionRunOptions
Class in rlmesh.hpp.
struct SessionRunOptionsFields
- episodes
std::optional<uint64_t> episodes{} - seeds
OptionalList<int64_t> seeds{} - max_episode_steps
std::optional<uint64_t> max_episode_steps{} - max_episode
std::optional<Duration> max_episode{} - hooks
RunHooks* hooks = nullptr - trial_index_base
uint64_t trial_index_base = 0 - cancel
std::optional<ext::CancelToken> cancel{}
Methods
- with_episodes()
SessionRunOptions& with_episodes(std::optional<uint64_t> value) & - with_episodes()
SessionRunOptions with_episodes(std::optional<uint64_t> value) && - with_seeds()
SessionRunOptions& with_seeds(OptionalList<int64_t> value) & - with_seeds()
SessionRunOptions with_seeds(OptionalList<int64_t> value) && - with_max_episode_steps()
SessionRunOptions& with_max_episode_steps(std::optional<uint64_t> value) & - with_max_episode_steps()
SessionRunOptions with_max_episode_steps(std::optional<uint64_t> value) && - with_max_episode()
SessionRunOptions& with_max_episode(std::optional<Duration> value) & - with_max_episode()
SessionRunOptions with_max_episode(std::optional<Duration> value) && - with_hooks()
SessionRunOptions& with_hooks(RunHooks* value) & - with_hooks()
SessionRunOptions with_hooks(RunHooks* value) && - with_trial_index_base()
SessionRunOptions& with_trial_index_base(uint64_t value) & - with_trial_index_base()
SessionRunOptions with_trial_index_base(uint64_t value) && - with_cancel()
SessionRunOptions& with_cancel(std::optional<ext::CancelToken> value) & - with_cancel()
SessionRunOptions with_cancel(std::optional<ext::CancelToken> value) &&
episodes
field[source]std::optional<uint64_t> episodes{}seeds
field[source]OptionalList<int64_t> seeds{}max_episode_steps
field[source]std::optional<uint64_t> max_episode_steps{}max_episode
field[source]std::optional<Duration> max_episode{}hooks
field[source]RunHooks* hooks = nullptrtrial_index_base
field[source]uint64_t trial_index_base = 0cancel
field[source]std::optional<ext::CancelToken> cancel{}with_episodes
method[source]SessionRunOptions& with_episodes(std::optional<uint64_t> value) &with_episodes
method[source]SessionRunOptions with_episodes(std::optional<uint64_t> value) &&with_seeds
method[source]SessionRunOptions& with_seeds(OptionalList<int64_t> value) &with_seeds
method[source]SessionRunOptions with_seeds(OptionalList<int64_t> value) &&with_max_episode_steps
method[source]SessionRunOptions& with_max_episode_steps(
std::optional<uint64_t> value
) &with_max_episode_steps
method[source]SessionRunOptions with_max_episode_steps(
std::optional<uint64_t> value
) &&with_max_episode
method[source]SessionRunOptions& with_max_episode(std::optional<Duration> value) &with_max_episode
method[source]SessionRunOptions with_max_episode(std::optional<Duration> value) &&with_hooks
method[source]SessionRunOptions& with_hooks(RunHooks* value) &with_hooks
method[source]SessionRunOptions with_hooks(RunHooks* value) &&with_trial_index_base
method[source]SessionRunOptions& with_trial_index_base(uint64_t value) &with_trial_index_base
method[source]SessionRunOptions with_trial_index_base(uint64_t value) &&with_cancel
method[source]SessionRunOptions& with_cancel(std::optional<ext::CancelToken> value) &with_cancel
method[source]SessionRunOptions with_cancel(std::optional<ext::CancelToken> value) &&