Lightning-AI / lightning-thunder

Make PyTorch models up to 40% faster! Thunder is a source to source compiler for PyTorch. It enables using different hardware executors at once; across one or thousands of GPUs.
Apache License 2.0
1.07k stars 60 forks source link

Disallow in-place to view tensors #630

Closed crcrpar closed 1 week ago

crcrpar commented 1 week ago

What does this PR do?

Following #584, this PR bans in-place to view tensors. There are some cases that we would be able to support but initially it'd make sense to be conservative.