Repository navigation
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/182730
Note: Links to docs will display an error until the docs builds have been completed. ❗ 1 Active SEVsThere are 1 currently active SEVs. If your PR is affected, please view them below: ❌ 2 Unclassified FailuresAs of commit 0708f68 with merge base 9c77719 ( UNCLASSIFIED FAILURES - DrCI could not classify the following jobs because the workflow did not run on the merge base. The failures may be pre-existing on trunk or introduced by this PR:
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
|
I think @anshul-si will eventually migrate the tensor_ops rule to single_dim_strategy too, fwiw |
|
@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 |
|
@pytorchbot revert -m "Reverted automatically by pytorch's autorevert, to avoid this behaviour add the tag autorevert: disable" -c autorevert This PR is attributed to have caused regression in:
Note: This revert was accelerated by the AI advisor: AI advisor: revert (confidence=0.90) Please investigate and fix the issues. |
|
Claude finished @pytorch-auto-revert[bot]'s task in 4m 9s —— View job Revert Diagnostics for PR #182730
Root CauseThe failing test is How This PR Caused ItThe PR changed
Is This a Legitimate Revert?Yes. The revert is legitimate. The PR correctly preserves standard Fix GuidanceThe author has a few options:
|
|
@pytorchbot successfully started a revert job. Check the current status here. |
This reverts commit dc2f599. Reverted #182730 on behalf of https://github.com/pytorch-auto-revert due to Reverted automatically by pytorch's autorevert, to avoid this behaviour add the tag autorevert: disable ([comment](#182730 (comment)))
|
@fegin your PR has been successfully reverted. |
| )(propagate_single_input_strategy) | ||
|
|
||
|
|
||
| def _is_user_facing_placement(p: Placement) -> bool: |
There was a problem hiding this comment.
Return type should a TypeIs[Union] since we know exactly what subtypes would make P be True
We registered clone op twice, one in _tensor_ops.py and another in _pointwise_ops.py. The former one is correct. This PR removes the later one. aten.clone.default is tagged torch.Tag.pointwise and was getting auto-registered with the default pointwise single-dim strategy, which only enumerates Replicate/Shard placements. A Partial input was silently redistributed to Replicate via implicit all-reduce. Skip clone from the pointwise auto-registration via a new _pointwise_skip_ops set, and register a custom strategy for aten.clone.default in _tensor_ops.py that wraps propagate_single_input_strategy. The wrapper preserves user-facing placements (Replicate, Shard, _StridedShard, plain Partial(sum/avg/max/min)) and demotes internal Partial subclasses (_NormPartial, _MaskPartial, etc.) to Replicate. This avoids leaking _NormPartial through clone to downstream ops that lack a strategy for it (e.g. aten.clamp_min_.Tensor inside nn.functional.cosine_similarity), which caused the prior version of this PR to be reverted. Adds test_clone_preserves_partial covering Partial(sum/avg/max/min). ghstack-source-id: 93fe0c0 Pull-Request: #182730
We registered clone op twice, one in _tensor_ops.py and another in _pointwise_ops.py. The former one is correct. This PR removes the later one. aten.clone.default is tagged torch.Tag.pointwise and was getting auto-registered with the default pointwise single-dim strategy, which only enumerates Replicate/Shard placements. A Partial input was silently redistributed to Replicate via implicit all-reduce. Skip clone from the pointwise auto-registration via a new _pointwise_skip_ops set, and register a custom strategy for aten.clone.default in _tensor_ops.py that wraps propagate_single_input_strategy. The wrapper preserves user-facing placements (Replicate, Shard, _StridedShard, plain Partial(sum/avg/max/min)) and demotes internal Partial subclasses (_NormPartial, _MaskPartial, etc.) to Replicate. This avoids leaking _NormPartial through clone to downstream ops that lack a strategy for it (e.g. aten.clamp_min_.Tensor inside nn.functional.cosine_similarity), which caused the prior version of this PR to be reverted. Adds test_clone_preserves_partial covering Partial(sum/avg/max/min). ghstack-source-id: a8b3e35 Pull-Request: #182730
We registered clone op twice, one in _tensor_ops.py and another in _pointwise_ops.py. The former one is correct. This PR removes the later one. aten.clone.default is tagged torch.Tag.pointwise and was getting auto-registered with the default pointwise single-dim strategy, which only enumerates Replicate/Shard placements. A Partial input was silently redistributed to Replicate via implicit all-reduce. Skip clone from the pointwise auto-registration via a new _pointwise_skip_ops set, and register a custom strategy for aten.clone.default in _tensor_ops.py that wraps propagate_single_input_strategy. The wrapper preserves user-facing placements (Replicate, Shard, _StridedShard, plain Partial(sum/avg/max/min)) and demotes internal Partial subclasses (_NormPartial, _MaskPartial, etc.) to Replicate. This avoids leaking _NormPartial through clone to downstream ops that lack a strategy for it (e.g. aten.clamp_min_.Tensor inside nn.functional.cosine_similarity), which caused the prior version of this PR to be reverted. Adds test_clone_preserves_partial covering Partial(sum/avg/max/min). ghstack-source-id: 8811e4a Pull-Request: #182730
We registered clone op twice, one in _tensor_ops.py and another in _pointwise_ops.py. The former one is correct. This PR removes the later one. aten.clone.default is tagged torch.Tag.pointwise and was getting auto-registered with the default pointwise single-dim strategy, which only enumerates Replicate/Shard placements. A Partial input was silently redistributed to Replicate via implicit all-reduce. Skip clone from the pointwise auto-registration via a new _pointwise_skip_ops set, and register a custom strategy for aten.clone.default in _tensor_ops.py that wraps propagate_single_input_strategy. The wrapper preserves user-facing placements (Replicate, Shard, _StridedShard, plain Partial(sum/avg/max/min)) and demotes internal Partial subclasses (_NormPartial, _MaskPartial, etc.) to Replicate. This avoids leaking _NormPartial through clone to downstream ops that lack a strategy for it (e.g. aten.clamp_min_.Tensor inside nn.functional.cosine_similarity), which caused the prior version of this PR to be reverted. Adds test_clone_preserves_partial covering Partial(sum/avg/max/min). ghstack-source-id: 54f31d0 Pull-Request: #182730
We registered clone op twice, one in _tensor_ops.py and another in _pointwise_ops.py. The former one is correct. This PR removes the later one. aten.clone.default is tagged torch.Tag.pointwise and was getting auto-registered with the default pointwise single-dim strategy, which only enumerates Replicate/Shard placements. A Partial input was silently redistributed to Replicate via implicit all-reduce. Skip clone from the pointwise auto-registration via a new _pointwise_skip_ops set, and register a custom strategy for aten.clone.default in _tensor_ops.py that wraps propagate_single_input_strategy. The wrapper preserves user-facing placements (Replicate, Shard, _StridedShard, plain Partial(sum/avg/max/min)) and demotes internal Partial subclasses (_NormPartial, _MaskPartial, etc.) to Replicate. This avoids leaking _NormPartial through clone to downstream ops that lack a strategy for it (e.g. aten.clamp_min_.Tensor inside nn.functional.cosine_similarity), which caused the prior version of this PR to be reverted. Adds test_clone_preserves_partial covering Partial(sum/avg/max/min). ghstack-source-id: 9a2d966 Pull-Request: #182730
We registered clone op twice, one in _tensor_ops.py and another in _pointwise_ops.py. The former one is correct. This PR removes the later one. aten.clone.default is tagged torch.Tag.pointwise and was getting auto-registered with the default pointwise single-dim strategy, which only enumerates Replicate/Shard placements. A Partial input was silently redistributed to Replicate via implicit all-reduce. Skip clone from the pointwise auto-registration via a new _pointwise_skip_ops set, and register a custom strategy for aten.clone.default in _tensor_ops.py that wraps propagate_single_input_strategy. The wrapper preserves user-facing placements (Replicate, Shard, _StridedShard, plain Partial(sum/avg/max/min)) and demotes internal Partial subclasses (_NormPartial, _MaskPartial, etc.) to Replicate. This avoids leaking _NormPartial through clone to downstream ops that lack a strategy for it (e.g. aten.clamp_min_.Tensor inside nn.functional.cosine_similarity), which caused the prior version of this PR to be reverted. Adds test_clone_preserves_partial covering Partial(sum/avg/max/min). ghstack-source-id: b656e9f Pull-Request: #182730
We registered clone op twice, one in _tensor_ops.py and another in _pointwise_ops.py. The former one is correct. This PR removes the later one. aten.clone.default is tagged torch.Tag.pointwise and was getting auto-registered with the default pointwise single-dim strategy, which only enumerates Replicate/Shard placements. A Partial input was silently redistributed to Replicate via implicit all-reduce. Skip clone from the pointwise auto-registration via a new _pointwise_skip_ops set, and register a custom strategy for aten.clone.default in _tensor_ops.py that wraps propagate_single_input_strategy. The wrapper preserves user-facing placements (Replicate, Shard, _StridedShard, plain Partial(sum/avg/max/min)) and demotes internal Partial subclasses (_NormPartial, _MaskPartial, etc.) to Replicate. This avoids leaking _NormPartial through clone to downstream ops that lack a strategy for it (e.g. aten.clamp_min_.Tensor inside nn.functional.cosine_similarity), which caused the prior version of this PR to be reverted. Adds test_clone_preserves_partial covering Partial(sum/avg/max/min). ghstack-source-id: 8b15dd6 Pull-Request: #182730
We registered clone op twice, one in _tensor_ops.py and another in _pointwise_ops.py. The former one is correct. This PR removes the later one. aten.clone.default is tagged torch.Tag.pointwise and was getting auto-registered with the default pointwise single-dim strategy, which only enumerates Replicate/Shard placements. A Partial input was silently redistributed to Replicate via implicit all-reduce. Skip clone from the pointwise auto-registration via a new _pointwise_skip_ops set, and register a custom strategy for aten.clone.default in _tensor_ops.py that wraps propagate_single_input_strategy. The wrapper preserves user-facing placements (Replicate, Shard, _StridedShard, plain Partial(sum/avg/max/min)) and demotes internal Partial subclasses (_NormPartial, _MaskPartial, etc.) to Replicate. This avoids leaking _NormPartial through clone to downstream ops that lack a strategy for it (e.g. aten.clamp_min_.Tensor inside nn.functional.cosine_similarity), which caused the prior version of this PR to be reverted. Adds test_clone_preserves_partial covering Partial(sum/avg/max/min). ghstack-source-id: 7354a66 Pull-Request: #182730
We registered clone op twice, one in _tensor_ops.py and another in _pointwise_ops.py. The former one is correct. This PR removes the later one. aten.clone.default is tagged torch.Tag.pointwise and was getting auto-registered with the default pointwise single-dim strategy, which only enumerates Replicate/Shard placements. A Partial input was silently redistributed to Replicate via implicit all-reduce. Skip clone from the pointwise auto-registration via a new _pointwise_skip_ops set. The existing register_op_strategy registration in _tensor_ops.py (propagate_single_input_strategy, a 1:1 placement passthrough) then takes effect, preserving Partial / Replicate / Shard alike. clone is fundamentally an identity op and should never redistribute. Adds test_clone_preserves_partial covering Partial(sum/avg/max/min). Pull Request resolved: pytorch#182730 Approved by: https://github.com/pianpwk
…182730)" This reverts commit dc2f599. Reverted pytorch#182730 on behalf of https://github.com/pytorch-auto-revert due to Reverted automatically by pytorch's autorevert, to avoid this behaviour add the tag autorevert: disable ([comment](pytorch#182730 (comment)))
We registered clone op twice, one in _tensor_ops.py and another in _pointwise_ops.py. The former one is correct. This PR removes the later one. aten.clone.default is tagged torch.Tag.pointwise and was getting auto-registered with the default pointwise single-dim strategy, which only enumerates Replicate/Shard placements. A Partial input was silently redistributed to Replicate via implicit all-reduce. Skip clone from the pointwise auto-registration via a new _pointwise_skip_ops set, and register a custom strategy for aten.clone.default in _tensor_ops.py that wraps propagate_single_input_strategy. The wrapper preserves user-facing placements (Replicate, Shard, _StridedShard, plain Partial(sum/avg/max/min)) and demotes internal Partial subclasses (_NormPartial, _MaskPartial, etc.) to Replicate. This avoids leaking _NormPartial through clone to downstream ops that lack a strategy for it (e.g. aten.clamp_min_.Tensor inside nn.functional.cosine_similarity), which caused the prior version of this PR to be reverted. Adds test_clone_preserves_partial covering Partial(sum/avg/max/min). ghstack-source-id: 1fd496f Pull-Request: #182730
We registered clone op twice, one in _tensor_ops.py and another in _pointwise_ops.py. The former one is correct. This PR removes the later one. aten.clone.default is tagged torch.Tag.pointwise and was getting auto-registered with the default pointwise single-dim strategy, which only enumerates Replicate/Shard placements. A Partial input was silently redistributed to Replicate via implicit all-reduce. Skip clone from the pointwise auto-registration via a new _pointwise_skip_ops set. The existing register_op_strategy registration in _tensor_ops.py (propagate_single_input_strategy, a 1:1 placement passthrough) then takes effect, preserving Partial / Replicate / Shard alike. clone is fundamentally an identity op and should never redistribute. Adds test_clone_preserves_partial covering Partial(sum/avg/max/min). Pull Request resolved: pytorch#182730 Approved by: https://github.com/pianpwk
…182730)" This reverts commit dc2f599. Reverted pytorch#182730 on behalf of https://github.com/pytorch-auto-revert due to Reverted automatically by pytorch's autorevert, to avoid this behaviour add the tag autorevert: disable ([comment](pytorch#182730 (comment)))
|
Looks like this PR hasn't been updated in a while so we're going to go ahead and mark this as |
We registered clone op twice, one in _tensor_ops.py and another in _pointwise_ops.py. The former one is correct. This PR removes the later one. aten.clone.default is tagged torch.Tag.pointwise and was getting auto-registered with the default pointwise single-dim strategy, which only enumerates Replicate/Shard placements. A Partial input was silently redistributed to Replicate via implicit all-reduce. Skip clone from the pointwise auto-registration via a new _pointwise_skip_ops set. The existing register_op_strategy registration in _tensor_ops.py (propagate_single_input_strategy, a 1:1 placement passthrough) then takes effect, preserving Partial / Replicate / Shard alike. clone is fundamentally an identity op and should never redistribute. Adds test_clone_preserves_partial covering Partial(sum/avg/max/min). Pull Request resolved: pytorch#182730 Approved by: https://github.com/pianpwk
…182730)" This reverts commit dc2f599. Reverted pytorch#182730 on behalf of https://github.com/pytorch-auto-revert due to Reverted automatically by pytorch's autorevert, to avoid this behaviour add the tag autorevert: disable ([comment](pytorch#182730 (comment)))
We registered clone op twice, one in _tensor_ops.py and another in _pointwise_ops.py. The former one is correct. This PR removes the later one. aten.clone.default is tagged torch.Tag.pointwise and was getting auto-registered with the default pointwise single-dim strategy, which only enumerates Replicate/Shard placements. A Partial input was silently redistributed to Replicate via implicit all-reduce. Skip clone from the pointwise auto-registration via a new _pointwise_skip_ops set. The existing register_op_strategy registration in _tensor_ops.py (propagate_single_input_strategy, a 1:1 placement passthrough) then takes effect, preserving Partial / Replicate / Shard alike. clone is fundamentally an identity op and should never redistribute. Adds test_clone_preserves_partial covering Partial(sum/avg/max/min). Pull Request resolved: pytorch#182730 Approved by: https://github.com/pianpwk
…182730)" This reverts commit dc2f599. Reverted pytorch#182730 on behalf of https://github.com/pytorch-auto-revert due to Reverted automatically by pytorch's autorevert, to avoid this behaviour add the tag autorevert: disable ([comment](pytorch#182730 (comment)))
Stack from ghstack (oldest at bottom):
We registered clone op twice, one in _tensor_ops.py and another in _pointwise_ops.py. The former one is correct. This PR removes the later one.
aten.clone.default is tagged torch.Tag.pointwise and was getting auto-registered with the default pointwise single-dim strategy, which only enumerates Replicate/Shard placements. A Partial input was silently redistributed to Replicate via implicit all-reduce.
Skip clone from the pointwise auto-registration via a new _pointwise_skip_ops set. The existing register_op_strategy registration in _tensor_ops.py (propagate_single_input_strategy, a 1:1 placement passthrough) then takes effect, preserving Partial / Replicate / Shard alike. clone is fundamentally an identity op and should never redistribute.
Adds test_clone_preserves_partial covering Partial(sum/avg/max/min).