garage.experiment.deterministic module

Utilities for ensuring that experiments are deterministic.

get_seed()[source]

Get the process-wide random seed.

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

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

Returns:A seed generated by a PRNG with fixed global seed.
Return type:int
set_seed(seed)[source]

Set the process-wide random seed.

Parameters:seed (int) – A positive integer