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¶
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.