Events
Module contains events processing mechanisms that are integrated with the standard python logging.
Example of usage:
from torch.distributed.elastic import events
event = events.Event(name="test_event", source=events.EventSource.WORKER, metadata={...})
events.get_logging_handler(destination="console").info(event)
API Methods
- torch.distributed.elastic.events.record(event, destination='null')[source]
Event Objects
- class torch.distributed.elastic.events.api.Event(name, source, timestamp=0, metadata=<factory>)[source]
The class represents the generic event that occurs during the torchelastic job execution. The event can be any kind of meaningful action.
- class torch.distributed.elastic.events.api.EventSource(value)[source]
Known identifiers of the event producers.