Repository navigation
Conversation
…s ops Refactor max.dim, min.dim, median.dim, nanmedian.dim, mode, kthvalue to use the shared _shard_non_reduction_dim helper. Add new single_dim_strategy for argmax/argmin (decorator commented out, old register_op_strategy kept). [ghstack-poisoned]
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/179200
Note: Links to docs will display an error until the docs builds have been completed. ✅ You can merge normally! (5 Unrelated Failures)As of commit a754411 with merge base c54d05a ( FLAKY - The following jobs failed but were likely due to flakiness present on trunk:
BROKEN TRUNK - The following jobs failed but were present on the merge base:👉 Rebase onto the `viable/strict` branch to avoid these failures
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
…with-indices ops" Refactor max.dim, min.dim, median.dim, nanmedian.dim, mode, kthvalue to use the shared _shard_non_reduction_dim helper. Add new single_dim_strategy for argmax/argmin (decorator commented out, old register_op_strategy kept). [ghstack-poisoned]
…with-indices ops" Refactor max.dim, min.dim, median.dim, nanmedian.dim, mode, kthvalue to use the shared _shard_non_reduction_dim helper. Add new single_dim_strategy for argmax/argmin (decorator commented out, old register_op_strategy kept). [ghstack-poisoned]
…with-indices ops" Refactor max.dim, min.dim, median.dim, nanmedian.dim, mode, kthvalue to use the shared _shard_non_reduction_dim helper. Add new single_dim_strategy for argmax/argmin (decorator commented out, old register_op_strategy kept). [ghstack-poisoned]
| # @register_single_dim_strategy( | ||
| # list(ARGMAX_ARGMIN_OPS.keys()), | ||
| # schema_info=RuntimeSchemaInfo(1), | ||
| # allow_uneven_sharding=True, | ||
| # ) |
There was a problem hiding this comment.
Curious, why don't we remove existing argmax_argmin_strategy and enable this strategy registration for those ops? This happens to others PRs in the stack also.
There was a problem hiding this comment.
I have a PR at the end for enablement of new strategies and deleting existing strategies. The reason I do it this way is so that if there are issues with logic, there's only one pr reverted, making it cleaner for me and others who are also working on this file
zpcore
left a comment
There was a problem hiding this comment.
The logic LGTM comparing with the existing strategy.
|
@pytorchbot review this pr |
|
❌ 🤖 pytorchbot command failed: Try |
…with-indices ops" Refactor max.dim, min.dim, median.dim, nanmedian.dim, mode, kthvalue to use the shared _shard_non_reduction_dim helper. Add new single_dim_strategy for argmax/argmin (decorator commented out, old register_op_strategy kept). [ghstack-poisoned]
…with-indices ops" Refactor max.dim, min.dim, median.dim, nanmedian.dim, mode, kthvalue to use the shared _shard_non_reduction_dim helper. Add new single_dim_strategy for argmax/argmin (decorator commented out, old register_op_strategy kept). [ghstack-poisoned]
…with-indices ops" Refactor max.dim, min.dim, median.dim, nanmedian.dim, mode, kthvalue to use the shared _shard_non_reduction_dim helper. Add new single_dim_strategy for argmax/argmin (decorator commented out, old register_op_strategy kept). [ghstack-poisoned]
…with-indices ops" Refactor max.dim, min.dim, median.dim, nanmedian.dim, mode, kthvalue to use the shared _shard_non_reduction_dim helper. Add new single_dim_strategy for argmax/argmin (decorator commented out, old register_op_strategy kept). [ghstack-poisoned]
…with-indices ops" Refactor max.dim, min.dim, median.dim, nanmedian.dim, mode, kthvalue to use the shared _shard_non_reduction_dim helper. Add new single_dim_strategy for argmax/argmin (decorator commented out, old register_op_strategy kept). [ghstack-poisoned]
…with-indices ops" Refactor max.dim, min.dim, median.dim, nanmedian.dim, mode, kthvalue to use the shared _shard_non_reduction_dim helper. Add new single_dim_strategy for argmax/argmin (decorator commented out, old register_op_strategy kept). [ghstack-poisoned]
…with-indices ops" Refactor max.dim, min.dim, median.dim, nanmedian.dim, mode, kthvalue to use the shared _shard_non_reduction_dim helper. Add new single_dim_strategy for argmax/argmin (decorator commented out, old register_op_strategy kept). [ghstack-poisoned]
…with-indices ops" Refactor max.dim, min.dim, median.dim, nanmedian.dim, mode, kthvalue to use the shared _shard_non_reduction_dim helper. Add new single_dim_strategy for argmax/argmin (decorator commented out, old register_op_strategy kept). [ghstack-poisoned]
…with-indices ops" Refactor max.dim, min.dim, median.dim, nanmedian.dim, mode, kthvalue to use the shared _shard_non_reduction_dim helper. Add new single_dim_strategy for argmax/argmin (decorator commented out, old register_op_strategy kept). [ghstack-poisoned]
…with-indices ops" Refactor max.dim, min.dim, median.dim, nanmedian.dim, mode, kthvalue to use the shared _shard_non_reduction_dim helper. Add new single_dim_strategy for argmax/argmin (decorator commented out, old register_op_strategy kept). [ghstack-poisoned]
…with-indices ops" Refactor max.dim, min.dim, median.dim, nanmedian.dim, mode, kthvalue to use the shared _shard_non_reduction_dim helper. Add new single_dim_strategy for argmax/argmin (decorator commented out, old register_op_strategy kept). [ghstack-poisoned]
…with-indices ops" Refactor max.dim, min.dim, median.dim, nanmedian.dim, mode, kthvalue to use the shared _shard_non_reduction_dim helper. Add new single_dim_strategy for argmax/argmin (decorator commented out, old register_op_strategy kept). [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 |
…s ops (pytorch#179200) Refactor max.dim, min.dim, median.dim, nanmedian.dim, mode, kthvalue to use the shared _shard_non_reduction_dim helper. Add new single_dim_strategy for argmax/argmin (decorator commented out, old register_op_strategy kept). Pull Request resolved: pytorch#179200 Approved by: https://github.com/zpcore ghstack dependencies: pytorch#179068
Add single_dim_strategy implementations for: - Category C: Linear reductions (sum, mean, amax, amin, nansum, prod) - Category C: Bool reductions (all, any) - fixes incorrect S(dim)->P rules - Category D: Non-linear reductions (std, var, var_mean, logsumexp) - Category E: Norm reductions (vector_norm, norm.Scalar, powsum) - fixes incorrect S(dim)->NormP rules - Category J: Global median (median.default, nanmedian.default) New registrations are commented out; old register_op_strategy kept active. Pull Request resolved: #179201 Approved by: https://github.com/zpcore, https://github.com/pianpwk ghstack dependencies: #179068, #179200
…ly, and histc ops (#179202) Add single_dim_strategy implementations for: - Category G: Pooling ops (batch/channel dim sharding, partial for avg pools) - Category H: Replicate-only ops (SVD, QR, diagonal, tril, triu, upsample, etc.) - Category L: Histc (partial output when min/max specified) New registrations are commented out; old register_op_strategy kept active. Pull Request resolved: #179202 Approved by: https://github.com/pianpwk ghstack dependencies: #179068, #179200, #179201
…s ops (pytorch#179200) Refactor max.dim, min.dim, median.dim, nanmedian.dim, mode, kthvalue to use the shared _shard_non_reduction_dim helper. Add new single_dim_strategy for argmax/argmin (decorator commented out, old register_op_strategy kept). Pull Request resolved: pytorch#179200 Approved by: https://github.com/zpcore ghstack dependencies: pytorch#179068
…h#179201) Add single_dim_strategy implementations for: - Category C: Linear reductions (sum, mean, amax, amin, nansum, prod) - Category C: Bool reductions (all, any) - fixes incorrect S(dim)->P rules - Category D: Non-linear reductions (std, var, var_mean, logsumexp) - Category E: Norm reductions (vector_norm, norm.Scalar, powsum) - fixes incorrect S(dim)->NormP rules - Category J: Global median (median.default, nanmedian.default) New registrations are commented out; old register_op_strategy kept active. Pull Request resolved: pytorch#179201 Approved by: https://github.com/zpcore, https://github.com/pianpwk ghstack dependencies: pytorch#179068, pytorch#179200
…ly, and histc ops (pytorch#179202) Add single_dim_strategy implementations for: - Category G: Pooling ops (batch/channel dim sharding, partial for avg pools) - Category H: Replicate-only ops (SVD, QR, diagonal, tril, triu, upsample, etc.) - Category L: Histc (partial output when min/max specified) New registrations are commented out; old register_op_strategy kept active. Pull Request resolved: pytorch#179202 Approved by: https://github.com/pianpwk ghstack dependencies: pytorch#179068, pytorch#179200, pytorch#179201
…s ops (pytorch#179200) Refactor max.dim, min.dim, median.dim, nanmedian.dim, mode, kthvalue to use the shared _shard_non_reduction_dim helper. Add new single_dim_strategy for argmax/argmin (decorator commented out, old register_op_strategy kept). Pull Request resolved: pytorch#179200 Approved by: https://github.com/zpcore ghstack dependencies: pytorch#179068
…h#179201) Add single_dim_strategy implementations for: - Category C: Linear reductions (sum, mean, amax, amin, nansum, prod) - Category C: Bool reductions (all, any) - fixes incorrect S(dim)->P rules - Category D: Non-linear reductions (std, var, var_mean, logsumexp) - Category E: Norm reductions (vector_norm, norm.Scalar, powsum) - fixes incorrect S(dim)->NormP rules - Category J: Global median (median.default, nanmedian.default) New registrations are commented out; old register_op_strategy kept active. Pull Request resolved: pytorch#179201 Approved by: https://github.com/zpcore, https://github.com/pianpwk ghstack dependencies: pytorch#179068, pytorch#179200
…ly, and histc ops (pytorch#179202) Add single_dim_strategy implementations for: - Category G: Pooling ops (batch/channel dim sharding, partial for avg pools) - Category H: Replicate-only ops (SVD, QR, diagonal, tril, triu, upsample, etc.) - Category L: Histc (partial output when min/max specified) New registrations are commented out; old register_op_strategy kept active. Pull Request resolved: pytorch#179202 Approved by: https://github.com/pianpwk ghstack dependencies: pytorch#179068, pytorch#179200, pytorch#179201
Stack from ghstack (oldest at bottom):
Refactor max.dim, min.dim, median.dim, nanmedian.dim, mode, kthvalue to
use the shared _shard_non_reduction_dim helper. Add new single_dim_strategy
for argmax/argmin (decorator commented out, old register_op_strategy kept).