Skip to content

Conversation

@chunhuanMeng
Copy link
Contributor

Fix #2023
Makes improvements to the max_pool3d_with_indices_xpu implementation by enhancing support for named tensors and ensuring proper propagation of tensor names. The changes also include a minor code organization update.

Enhancements for named tensor support:

  • Added an include for ATen/NamedTensorUtils.h in DilatedMaxPool3d.cpp to enable named tensor utilities.
  • Ensured that output tensors (output and indices) correctly propagate the names from the input tensor by calling namedinference::propagate_names for both.

Copilot AI review requested due to automatic review settings November 4, 2025 06:15
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds support for named tensors to the max_pool3d_with_indices_xpu implementation by ensuring proper propagation of tensor names from input to output tensors.

  • Includes necessary header for named tensor utilities
  • Propagates tensor names from input to both output and indices tensors

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@chunhuanMeng chunhuanMeng changed the title propagate names from input to output Ensured that output tensors (output and indices) correctly propagate the names from the input tensor Nov 4, 2025
Copy link
Contributor

@CuiYifeng CuiYifeng left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Please indicate which test cases will be fixed by this PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

F.max_pool3d().names are None

3 participants