Skip to content

Conversation

@chunhuanMeng
Copy link
Contributor

Fix Issue:#1939

@Copilot Copilot AI review requested due to automatic review settings October 20, 2025 03:43
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 FP8 support to XPU tensor operations including flip, index, and index_put operations by migrating from legacy dispatch macros to the newer AT_DISPATCH_V2 system.

  • Migrates flip_kernel from AT_DISPATCH_ALL_TYPES_AND_COMPLEX_AND3 to AT_DISPATCH_V2
  • Migrates index_kernel and index_put_kernel from AT_DISPATCH_ALL_TYPES_AND_COMPLEX_AND4 to AT_DISPATCH_V2
  • Adds FP8 type support through AT_FLOAT8_TYPES expansion

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
src/ATen/native/xpu/sycl/TensorTransformationsKernels.cpp Updates flip_kernel to use AT_DISPATCH_V2 with FP8 support
src/ATen/native/xpu/sycl/Indexing.cpp Updates index_kernel and index_put_kernel to use AT_DISPATCH_V2 with FP8 support

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

});
}),
AT_EXPAND(AT_ALL_TYPES_AND_COMPLEX),
AT_EXPAND(AT_FLOAT8_TYPES),
Copy link

Copilot AI Oct 20, 2025

Choose a reason for hiding this comment

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

Missing AT_EXPAND(AT_BAREBONES_UNSIGNED_TYPES) that was included in the flip_kernel implementation. For consistency across operations, this should be added.

Suggested change
AT_EXPAND(AT_FLOAT8_TYPES),
AT_EXPAND(AT_FLOAT8_TYPES),
AT_EXPAND(AT_BAREBONES_UNSIGNED_TYPES),

Copilot uses AI. Check for mistakes.

});
}),
AT_EXPAND(AT_ALL_TYPES_AND_COMPLEX),
AT_EXPAND(AT_FLOAT8_TYPES),
Copy link

Copilot AI Oct 20, 2025

Choose a reason for hiding this comment

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

Missing AT_EXPAND(AT_BAREBONES_UNSIGNED_TYPES) that was included in the flip_kernel implementation. For consistency across operations, this should be added.

Suggested change
AT_EXPAND(AT_FLOAT8_TYPES),
AT_EXPAND(AT_FLOAT8_TYPES),
AT_EXPAND(AT_BAREBONES_UNSIGNED_TYPES),

Copilot uses AI. Check for mistakes.

@chunhuanMeng
Copy link
Contributor Author

image image

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.

1 participant