pytorch
19788002 - Remove a couple of additional places where we would construct tensors - aliases of params, inputs (#98950)

Commit
1 year ago
Remove a couple of additional places where we would construct tensors - aliases of params, inputs (#98950) Removes two additional places where we would construct tensors - Non-static inputs. These are only constructed to invoke the `copy_` kernel and do not own memory so we can construct them only once - Aliases of persistent static inputs (parameters). the memory will be permanently live and is not managed by the cudagraph tapes. (also sneaking in a bug fix around unaligned static idx) Pull Request resolved: https://github.com/pytorch/pytorch/pull/98950 Approved by: https://github.com/jansel
Author
Committer
Parents
Loading