Skip to content

[IR] Journaling system #1717

Closed as duplicate of#59
Closed as duplicate of#59
@justinchuby

Description

@justinchuby

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

Metadata

Metadata

Assignees

Labels

module: IRIntermediate representation

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions