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

Support torch.compile for RF #1491

Open
albertz opened this issue Jan 9, 2024 · 0 comments
Open

Support torch.compile for RF #1491

albertz opened this issue Jan 9, 2024 · 0 comments

Comments

@albertz
Copy link
Member

albertz commented Jan 9, 2024

I'm not really sure whether that is possible because we have our own Tensor class which wraps around the torch.Tensor, and similarly all the PyTorch functions are wrapped inside RF.

However, I found out that there is TensorDict, which also wraps around PyTorch tensors, and it is explicitly stated that this is compatible with torch.compile, so maybe it is possible. In that case, it behaves like a dict, but does not inherit from dict, it just inherits from collections.abc.MutableMapping, see here.

So, let us discuss here possibilities and options to support torch.compile directly with the RF PyTorch backend.

Related:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant