Lightning-AI / Lightning-AI/lightning-thunder

multiple in-place ops to func's arg tensors that are a view of another

Open
#738 1 comment 0 reactions 1 assignee Claimed by @crcrpar View on GitHub
aliasing
Dominant language
Python
Stars
1.5k
Forks
121
PR merge metrics
No merged PRs in 30d

Description

Looks good to me, I wonder if we want a note about aliases as args?

```python
def f(a, b):
return a.exp_().sin_() + b.exp_().sin_()

a = torch.randn(5, 5)
f(a, a)
```

_Originally posted by @t-vi in https://github.com/Lightning-AI/lightning-thunder/pull/723#pullrequestreview-2165267499_

rel: #657

cc @apaz-cli

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.