Skip to content

Torch FX as code generator for AD #543

@yingjerkao

Description

@yingjerkao

PyTorch 2.0 released the FX module, which consists of three main components: a symbolic tracer, an intermediate representation, and Python code generation.

https://pytorch.org/docs/stable/fx.html

Example code:
https://github.com/pytorch/examples/tree/1bef748fab064e2fc3beddcbda60fd51cb9612d2/fx

This allows for manipulation of computational graphs and potentially generation of AD code for tensor network algorithms.

This might provides an easier integration of AD to our library

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions