Revert "Fix usage of forwarding references (#161094)"

This reverts commit 1ebd70d0c0d562d3be9abdee2a21906584af7d99.

Reverted https://github.com/pytorch/pytorch/pull/161094 on behalf of https://github.com/jeanschmidt due to checking if revert will fix https://github.com/pytorch/pytorch/actions/runs/17470601839/job/49621447581 ([comment](https://github.com/pytorch/pytorch/pull/161094#issuecomment-3255541480))
This commit is contained in:
PyTorch MergeBot
2025-09-04 20:35:41 +00:00
parent a3d72b09ae
commit 48bedd753d
5 changed files with 6 additions and 6 deletions

View File

@ -232,7 +232,7 @@ struct base {
return obj<T>::steal(self);
}
template<typename ... Args>
static obj<T> create(Args&&... args) {
static obj<T> create(Args ... args) {
auto self = alloc();
self->init(std::forward<Args>(args)...);
return self;