Skip to content

What's the usage of event_to_attr #1934

@Nic-Ma

Description

@Nic-Ma

❓ Questions/Help/Support

Hi @vfdev-5 ,

I see there is a dict property event_to_attr in State:
https://github.com/pytorch/ignite/blob/master/ignite/engine/events.py#L374
And users can register new event-to-attr "mapping" in engines.
But I didn't find the usage of this property, may I know why you defined this dict and what the usage case it is for?

In my simple mind, maybe "register events" and "register attributes" can be 2 independent features of State?
I didn't see the relationship between "event names" and "attributes" of State.
I am enabling it in MONAI and Clara workflows, users use custom events and attributes to share data between handlers.

Thanks in advance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions