How to find a list of available backends of torch.compile?

I’m using Pytorch nightly (version 2.1.0.dev20230304+cu117)
I was trying to use torch._dynamo.list_backends() to list the available backends (from this article), but it does not seem to work.

Found the answer. You need to install torchdynamo and call torchdynamo.list_backends() from this article.

1 Like