to_dict#

MultiRLModuleSpec.to_dict() → Dict[str, Any][source]#

Converts the MultiRLModuleSpec to a dictionary.

Returns:

A serializable dict of this spec, from which from_dict() can rebuild it. Each sub-spec is converted with RLModuleSpec.to_dict().

Return type:

Dict[str, Any]