to_dict#

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

Returns serializable dictionary representation of the backend config. Subclasses can override this to expose framework-specific configuration.

The fields here are used for state export of the backend config. If a field is not serializable, it should be excluded.

Returns:

A dictionary of the config’s serializable fields. The base class returns an empty dictionary.

Return type:

Dict[str, Any]