Shortcuts

default_value_kwargs

class torchrl.objectives.default_value_kwargs(value_type: ValueEstimators)[source]

Default value function keyword argument generator.

Parameters:

value_type (Enum.value) – the value function type, from the

:param ValueEstimators class.:

Examples

>>> kwargs = default_value_kwargs(ValueEstimators.TDLambda)
{"gamma": 0.99, "lmbda": 0.95}

Docs

Access comprehensive developer documentation for PyTorch

View Docs

Tutorials

Get in-depth tutorials for beginners and advanced developers

View Tutorials

Resources

Find development resources and get your questions answered

View Resources