Module Space.Discrete
type element = (int32, Nx.int32_elt) Nx.tDiscrete action represented as a scalar int32 tensor.
create ?start n is a discrete space with n choices in the range [start; start + n - 1]. start defaults to 0.
Raises Invalid_argument if n <= 0.
n s is the number of choices in s.
Raises Invalid_argument if s is not a discrete space.
start s is the starting value of s.
Raises Invalid_argument if s is not a discrete space.
val to_int : element -> intto_int e is the integer value of the discrete element e.
val of_int : int -> elementof_int v is a discrete element with value v.