Rate this Page

torch.fx.traceback.get_graph_provenance_json#

torch.fx.traceback.get_graph_provenance_json(graph)[source]#

Given an fx.Graph, return a json that contains the provenance information of each node.

Warning

This API is experimental and is NOT backward-compatible.

Return type:

dict[str, Any]