Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[IR] Journaling system #1717

Open
justinchuby opened this issue Jul 3, 2024 · 0 comments
Open

[IR] Journaling system #1717

justinchuby opened this issue Jul 3, 2024 · 0 comments
Assignees
Labels
topic: IR Intermediate representation

Comments

@justinchuby
Copy link
Collaborator

justinchuby commented Jul 3, 2024

envvar ONNX_IR_TRACK_CHANGES=1

Use a context manager to create new journals which can be serialized as json. It can be replayed and recreate the graph.

@track_changes
def name(self, value):
    ...

will create Action("name", <traceback>) in the object meta, also serialized into metadata_props

class Action:
    id: int
    type: str
    field: Literal["INIT", "UPDATE", "ADD_NODE", ...]
    value: Any
    call_stack: str
    timestamp: int
@justinchuby justinchuby added the topic: IR Intermediate representation label Jul 3, 2024
@justinchuby justinchuby self-assigned this Jul 3, 2024
@justinchuby justinchuby changed the title [IR] Change tracker [IR] Journaling system Jul 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: IR Intermediate representation
Projects
None yet
Development

No branches or pull requests

1 participant