trunk/755182b4f34e5c96d0e35d7503f67b4d66596395: [Stable-ABI] Add torch::stable::add. (#196762)
- PyTorch: 2417 events in the last 90 days
- PyTorch: 2385th Release in the last 90 days
- Previous: earlier the same day · viable/strict/1792162361
What happened
Adds torch::stable::add to the stable ABI, gated on a new TORCH_VERSION_2_16_0 . This is needed for the torchvision stable-ABI port, which currently works around the missing op with subtract(self, other, -1.0) . Summary Introduces torch::stable::add(self, other, double alpha = 1.0) via the aten C shim ( aoti_torch_aten_add_Tensor ), mirroring torch::stable::subtract . Adds TORCH_VERSION_2_16_0 , registers the shim i…
Summary assembled by rule from the sources below