Skip to content

Conversation

@CuiYifeng
Copy link
Contributor

No description provided.

Copilot AI review requested due to automatic review settings November 12, 2025 13:54
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 refactors the FP8 concatenation unit test to use PyTorch's standard test infrastructure instead of manual dtype iteration. The main changes improve test maintainability and consistency with PyTorch testing conventions.

Key Changes:

  • Replaced manual float8 dtype iteration with the @dtypes decorator
  • Integrated with PyTorch's device type testing framework for XPU devices
  • Added proper test instantiation and runner boilerplate

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

dtypes,
instantiate_device_type_tests,
)
from torch.testing._internal.common_dtype import float8_types_and
Copy link

Copilot AI Nov 12, 2025

Choose a reason for hiding this comment

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

The import name 'float8_types_and' appears to be incomplete. It should likely be 'float8_types' or similar. Please verify the correct function name from torch.testing._internal.common_dtype.

Copilot uses AI. Check for mistakes.
@CuiYifeng CuiYifeng force-pushed the yifeng/fix_fp8_cat_ut branch from 585ed3a to 69230c8 Compare November 13, 2025 01:06
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.

2 participants