garage.experiment.deterministic

Utilities for ensuring that experiments are deterministic.

seed_
seed_stream_
set_seed(seed)

Set the process-wide random seed.

Parameters:seed (int) – A positive integer
get_seed()

Get the process-wide random seed.

Returns:The process-wide random seed
Return type:int
get_tf_seed_stream()

Get the pseudo-random number generator (PRNG) for TensorFlow ops.

Returns:A seed generated by a PRNG with fixed global seed.
Return type:int