city_of_gold.vec

Vectorized utilities

env

Vectorized environments

sampler

Vectorized action samplers

runner

Vectorized runners

Members

city_of_gold.vec.get_runner(N: int) object

Get the threaded runner class for N environments

This is a helper utility for instantiating differently sized environment runners at runtime, as each number of environments corresponds to a specialization of a class template internally.

Parameters:

N (unsigned int) – number of environments

Returns:

city_of_gold.vec.runner.vec_runner_<N> class object

city_of_gold.vec.get_vec_env(N: int) object

Get the vectorized environment class for N environments

This is a helper utility for instantiating differently sized environments at runtime, as each number of environments corresponds to a specialization of a class template internally.

Parameters:

N (unsigned int) – number of environments

Returns:

city_of_gold.vec.env.vec_cog_env_<N> class object

city_of_gold.vec.get_vec_sampler(N: int) object

Get the vectorized random action sampler class for N environments

This is a helper utility for instantiating differently sized environments at runtime, as each number of environments corresponds to a specialization of a class template internally.

Parameters:

N (unsigned int) – number of environments

Returns:

city_of_gold.vec.sampler.vec_sampler_<N> class object.