Upgrade stable new_{empty/zeros} that had only dtype argument to full version#169711
Upgrade stable new_{empty/zeros} that had only dtype argument to full version#169711mikaylagawarecki wants to merge 4 commits intogh/mikaylagawarecki/397/basefrom
Conversation
[ghstack-poisoned]
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/169711
Note: Links to docs will display an error until the docs builds have been completed. ✅ No FailuresAs of commit c188404 with merge base 5d1459a ( This comment was automatically generated by Dr. CI and updates every 15 minutes. |
[ghstack-poisoned]
albanD
left a comment
There was a problem hiding this comment.
For post-branch cut: we really need to add documentation for all of these functions we're adding!
…ent to full version" [ghstack-poisoned]
|
@pytorchbot merge |
Merge startedYour change will be merged once all checks pass (ETA 0-4 Hours). Learn more about merging in the wiki. Questions? Feedback? Please reach out to the PyTorch DevX Team |
|
The merge job was canceled or timed out. This most often happen if two merge requests were issued for the same PR, or if merge job was waiting for more than 6 hours for tests to finish. In later case, please do not hesitate to reissue the merge command |
…ent to full version" [ghstack-poisoned]
|
@pytorchbot merge |
Merge startedYour change will be merged once all checks pass (ETA 0-4 Hours). Learn more about merging in the wiki. Questions? Feedback? Please reach out to the PyTorch DevX Team |
Merge failedReason: Command Details for Dev Infra teamRaised by workflow job |
|
@pytorchbot merge |
Merge startedYour change will be merged once all checks pass (ETA 0-4 Hours). Learn more about merging in the wiki. Questions? Feedback? Please reach out to the PyTorch DevX Team |
… version (#169711) Pull Request resolved: #169711 Approved by: https://github.com/albanD ghstack dependencies: #169703, #169709
Pull Request resolved: #168062 Approved by: https://github.com/albanD ghstack dependencies: #169703, #169709, #169711
… version (pytorch#169711) Pull Request resolved: pytorch#169711 Approved by: https://github.com/albanD ghstack dependencies: pytorch#169703, pytorch#169709
Pull Request resolved: pytorch#168062 Approved by: https://github.com/albanD ghstack dependencies: pytorch#169703, pytorch#169709, pytorch#169711
…ch_call_dispatcher) (pytorch#169872) Scalar's StableIValue conversion is not supported yet. If we don't land this we can recommend `fill_(empty(...))` instead Pull Request resolved: pytorch#169872 Approved by: https://github.com/albanD ghstack dependencies: pytorch#169703, pytorch#169709, pytorch#169711, pytorch#168062
From https://github.com/pytorch/audio/blob/main/src/libtorchaudio/stable/ops.h Technically it should have been ok not to port these but looking at these carefully I realized the subtract ported to audio ~would have undefined behavior :/~ is broken ``` inline Tensor subtract(const Tensor& self, const Tensor& other) { const auto num_args = 2; std::array<StableIValue, num_args> stack{ torch::stable::detail::from(self), torch::stable::detail::from(other)}; TORCH_ERROR_CODE_CHECK(torch_call_dispatcher( "aten::subtract", "Tensor", stack.data(), TORCH_ABI_VERSION)); return torch::stable::detail::to<torch::stable::Tensor>(stack[0]); } ``` as it missed `alpha` the signature for `subtract.Tensor` is `func: subtract.Tensor(Tensor self, Tensor other, *, Scalar alpha=1) -> Tensor`. ~This is also our bad as although out of bounds reads on the stableivalue stack would be caught by asan, without asan they are silent correctness issues (PR coming to fix).~ Use the old path to support this as we don't support stableivalue conversion for Scalar yet. Pull Request resolved: #169880 Approved by: https://github.com/albanD ghstack dependencies: #169703, #169709, #169711, #168062, #169872
… version (pytorch#169711) Pull Request resolved: pytorch#169711 Approved by: https://github.com/albanD ghstack dependencies: pytorch#169703, pytorch#169709
Pull Request resolved: pytorch#168062 Approved by: https://github.com/albanD ghstack dependencies: pytorch#169703, pytorch#169709, pytorch#169711
…ch_call_dispatcher) (pytorch#169872) Scalar's StableIValue conversion is not supported yet. If we don't land this we can recommend `fill_(empty(...))` instead Pull Request resolved: pytorch#169872 Approved by: https://github.com/albanD ghstack dependencies: pytorch#169703, pytorch#169709, pytorch#169711, pytorch#168062
…ch#169880) From https://github.com/pytorch/audio/blob/main/src/libtorchaudio/stable/ops.h Technically it should have been ok not to port these but looking at these carefully I realized the subtract ported to audio ~would have undefined behavior :/~ is broken ``` inline Tensor subtract(const Tensor& self, const Tensor& other) { const auto num_args = 2; std::array<StableIValue, num_args> stack{ torch::stable::detail::from(self), torch::stable::detail::from(other)}; TORCH_ERROR_CODE_CHECK(torch_call_dispatcher( "aten::subtract", "Tensor", stack.data(), TORCH_ABI_VERSION)); return torch::stable::detail::to<torch::stable::Tensor>(stack[0]); } ``` as it missed `alpha` the signature for `subtract.Tensor` is `func: subtract.Tensor(Tensor self, Tensor other, *, Scalar alpha=1) -> Tensor`. ~This is also our bad as although out of bounds reads on the stableivalue stack would be caught by asan, without asan they are silent correctness issues (PR coming to fix).~ Use the old path to support this as we don't support stableivalue conversion for Scalar yet. Pull Request resolved: pytorch#169880 Approved by: https://github.com/albanD ghstack dependencies: pytorch#169703, pytorch#169709, pytorch#169711, pytorch#168062, pytorch#169872
Stack from ghstack (oldest at bottom):