garage.tf.optimizers._dtypes

Data types for TensorFlow optimizers.

class LazyDict(**kwargs)

An immutable, lazily-evaluated dict.

Parameters

**kwargs (dict[Callable]) – Initial lazy key-value pairs.

get(key, default=None)

See dict.get().

Parameters
  • key (Hashable) – Key associated with the value to retreive.

  • default (object) – Value to return if key is not present in this LazyDict.

Returns

Value associated with key if the key is present, otherwise

default.

Return type

object

set(key, value)

See dict.set().

Parameters
  • key (Hashable) – Key associated with value.

  • value (Callable) – Function which returns the lazy value associated with key.