Repository navigation
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/189494
Note: Links to docs will display an error until the docs builds have been completed. ✅ You can merge normally! (6 Unrelated Failures)As of commit dc8dd04 with merge base 0893b64 ( CRCR (non-blocking) - The following CRCR downstream CI jobs failed but are non-blocking:
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
|
@claude explain the CI failures, are they related to this PR? |
|
Claude finished @mmarthmm's task in 54s —— View job CI Failure AnalysisHere's a breakdown of the reported failures. Only one is actually caused by this PR — the lint failure. The rest are infrastructure/flaky.
Details1. Lint failure (RELATED — action needed)The docstring you added at def _sanitize_for_repr(obj: Any) -> Any:
"""Convert Enum values to their underlying value for valid Python repr in code generation."""Fix: shorten/wrap the docstring, for example: def _sanitize_for_repr(obj: Any) -> Any:
"""Convert Enum values to their underlying value for a valid Python repr.
Used during code generation so enums serialize as their plain value.
"""Or run 2.
|
99e7438 to
24dcd03
Compare
…en (pytorch#189494) Summary: ~~Pull Request resolved: pytorch#175900 User-defined Triton kernels can have `triton_meta` dicts containing Enum values (e.g., `RoundingMode.even` from fbgemm). When these are serialized with `repr()`, they produce invalid Python syntax like `<RoundingMode.even: 2>`. This adds a `_sanitize_for_repr` helper that recursively converts Enum values to their underlying value via `obj.value` before code generation. This handles IntEnum, StrEnum, and any other Enum subclass generically. Test Plan: Added unit test `test_sanitize_for_repr` in test_codegen_triton.py covering Enum, IntEnum, nested containers, namedtuples, and passthrough of non-enum values. Reviewed By: malaybag, angelayi Differential Revision: D92433313
…en (pytorch#189494) Summary: Pull Request resolved: pytorch#189494 ~~Pull Request resolved: pytorch#175900 User-defined Triton kernels can have `triton_meta` dicts containing Enum values (e.g., `RoundingMode.even` from fbgemm). When these are serialized with `repr()`, they produce invalid Python syntax like `<RoundingMode.even: 2>`. This adds a `_sanitize_for_repr` helper that recursively converts Enum values to their underlying value via `obj.value` before code generation. This handles IntEnum, StrEnum, and any other Enum subclass generically. Test Plan: Added unit test `test_sanitize_for_repr` in test_codegen_triton.py covering Enum, IntEnum, nested containers, namedtuples, and passthrough of non-enum values. Reviewed By: malaybag, angelayi Differential Revision: D92433313
c85af32 to
85bc85a
Compare
…en (pytorch#189494) Summary: ~~Pull Request resolved: pytorch#175900 User-defined Triton kernels can have `triton_meta` dicts containing Enum values (e.g., `RoundingMode.even` from fbgemm). When these are serialized with `repr()`, they produce invalid Python syntax like `<RoundingMode.even: 2>`. This adds a `_sanitize_for_repr` helper that recursively converts Enum values to their underlying value via `obj.value` before code generation. This handles IntEnum, StrEnum, and any other Enum subclass generically. Test Plan: Added unit test `test_sanitize_for_repr` in test_codegen_triton.py covering Enum, IntEnum, nested containers, namedtuples, and passthrough of non-enum values. Reviewed By: malaybag, angelayi Differential Revision: D92433313
85bc85a to
8718ba5
Compare
…en (pytorch#189494) Summary: ~~Pull Request resolved: pytorch#175900 User-defined Triton kernels can have `triton_meta` dicts containing Enum values (e.g., `RoundingMode.even` from fbgemm). When these are serialized with `repr()`, they produce invalid Python syntax like `<RoundingMode.even: 2>`. This adds a `_sanitize_for_repr` helper that recursively converts Enum values to their underlying value via `obj.value` before code generation. This handles IntEnum, StrEnum, and any other Enum subclass generically. Test Plan: Added unit test `test_sanitize_for_repr` in test_codegen_triton.py covering Enum, IntEnum, nested containers, namedtuples, and passthrough of non-enum values. Reviewed By: malaybag, angelayi Differential Revision: D92433313
8718ba5 to
78f11c5
Compare
…en (pytorch#189494) Summary: ~~Pull Request resolved: pytorch#175900 User-defined Triton kernels can have `triton_meta` dicts containing Enum values (e.g., `RoundingMode.even` from fbgemm). When these are serialized with `repr()`, they produce invalid Python syntax like `<RoundingMode.even: 2>`. This adds a `_sanitize_for_repr` helper that recursively converts Enum values to their underlying value via `obj.value` before code generation. This handles IntEnum, StrEnum, and any other Enum subclass generically. Test Plan: Added unit test `test_sanitize_for_repr` in test_codegen_triton.py covering Enum, IntEnum, nested containers, namedtuples, and passthrough of non-enum values. Reviewed By: malaybag, angelayi Differential Revision: D92433313
78f11c5 to
7195acf
Compare
…en (pytorch#189494) Summary: ~~Pull Request resolved: pytorch#175900 User-defined Triton kernels can have `triton_meta` dicts containing Enum values (e.g., `RoundingMode.even` from fbgemm). When these are serialized with `repr()`, they produce invalid Python syntax like `<RoundingMode.even: 2>`. This adds a `_sanitize_for_repr` helper that recursively converts Enum values to their underlying value via `obj.value` before code generation. This handles IntEnum, StrEnum, and any other Enum subclass generically. Test Plan: Added unit test `test_sanitize_for_repr` in test_codegen_triton.py covering Enum, IntEnum, nested containers, namedtuples, and passthrough of non-enum values. Reviewed By: malaybag, angelayi Differential Revision: D92433313
…en (pytorch#189494) Summary: ~~Pull Request resolved: pytorch#175900 User-defined Triton kernels can have `triton_meta` dicts containing Enum values (e.g., `RoundingMode.even` from fbgemm). When these are serialized with `repr()`, they produce invalid Python syntax like `<RoundingMode.even: 2>`. This adds a `_sanitize_for_repr` helper that recursively converts Enum values to their underlying value via `obj.value` before code generation. This handles IntEnum, StrEnum, and any other Enum subclass generically. Test Plan: Added unit test `test_sanitize_for_repr` in test_codegen_triton.py covering Enum, IntEnum, nested containers, namedtuples, and passthrough of non-enum values. Reviewed By: malaybag, angelayi Differential Revision: D92433313
7195acf to
09fbd3b
Compare
|
@pytorchmergebot merge |
Merge failedReason: This PR needs a If not, please add the To add a label, you can comment to pytorchbot, for example For more information, see Details for Dev Infra teamRaised by workflow job |
|
@pytorchbot label "release notes: inductor" |
|
@pytorchmergebot 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 |
Merge failedReason: 1 STARTUP failures reported, please check workflows syntax! Details for Dev Infra teamRaised by workflow job |
|
@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 |
Merge failedReason: 1 STARTUP failures reported, please check workflows syntax! Details for Dev Infra teamRaised by workflow job |
09fbd3b to
a337457
Compare
…en (pytorch#189494) Summary: ~~Pull Request resolved: pytorch#175900 User-defined Triton kernels can have `triton_meta` dicts containing Enum values (e.g., `RoundingMode.even` from fbgemm). When these are serialized with `repr()`, they produce invalid Python syntax like `<RoundingMode.even: 2>`. This adds a `_sanitize_for_repr` helper that recursively converts Enum values to their underlying value via `obj.value` before code generation. This handles IntEnum, StrEnum, and any other Enum subclass generically. Test Plan: Added unit test `test_sanitize_for_repr` in test_codegen_triton.py covering Enum, IntEnum, nested containers, namedtuples, and passthrough of non-enum values. Reviewed By: malaybag, angelayi Differential Revision: D92433313
|
@claude explain the CI failures, are they related to this PR? |
a337457 to
1005574
Compare
…en (pytorch#189494) Summary: ~~Pull Request resolved: pytorch#175900 User-defined Triton kernels can have `triton_meta` dicts containing Enum values (e.g., `RoundingMode.even` from fbgemm). When these are serialized with `repr()`, they produce invalid Python syntax like `<RoundingMode.even: 2>`. This adds a `_sanitize_for_repr` helper that recursively converts Enum values to their underlying value via `obj.value` before code generation. This handles IntEnum, StrEnum, and any other Enum subclass generically. Test Plan: Added unit test `test_sanitize_for_repr` in test_codegen_triton.py covering Enum, IntEnum, nested containers, namedtuples, and passthrough of non-enum values. Reviewed By: malaybag, angelayi Differential Revision: D92433313
…en (pytorch#189494) Summary: ~~Pull Request resolved: pytorch#175900 User-defined Triton kernels can have `triton_meta` dicts containing Enum values (e.g., `RoundingMode.even` from fbgemm). When these are serialized with `repr()`, they produce invalid Python syntax like `<RoundingMode.even: 2>`. This adds a `_sanitize_for_repr` helper that recursively converts Enum values to their underlying value via `obj.value` before code generation. This handles IntEnum, StrEnum, and any other Enum subclass generically. Test Plan: Added unit test `test_sanitize_for_repr` in test_codegen_triton.py covering Enum, IntEnum, nested containers, namedtuples, and passthrough of non-enum values. Reviewed By: malaybag, angelayi Differential Revision: D92433313
1005574 to
dc8dd04
Compare
|
@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 |
…en (pytorch#189494) (pytorch#189494) Summary: ~~Pull Request resolved: pytorch#175900 User-defined Triton kernels can have `triton_meta` dicts containing Enum values (e.g., `RoundingMode.even` from fbgemm). When these are serialized with `repr()`, they produce invalid Python syntax like `<RoundingMode.even: 2>`. This adds a `_sanitize_for_repr` helper that recursively converts Enum values to their underlying value via `obj.value` before code generation. This handles IntEnum, StrEnum, and any other Enum subclass generically. Test Plan: Added unit test `test_sanitize_for_repr` in test_codegen_triton.py covering Enum, IntEnum, nested containers, namedtuples, and passthrough of non-enum values. Reviewed By: malaybag, angelayi Differential Revision: D92433313 Pull Request resolved: pytorch#189494 Approved by: https://github.com/angelayi
Summary:
Pull Request resolved: #175900User-defined Triton kernels can have
triton_metadicts containing Enum values(e.g.,
RoundingMode.evenfrom fbgemm). When these are serialized withrepr(),they produce invalid Python syntax like
<RoundingMode.even: 2>.This adds a
_sanitize_for_reprhelper that recursively converts Enum valuesto their underlying value via
obj.valuebefore code generation. This handlesIntEnum, StrEnum, and any other Enum subclass generically.
Test Plan: Added unit test
test_sanitize_for_reprin test_codegen_triton.py covering Enum, IntEnum, nested containers, namedtuples, and passthrough of non-enum values.Reviewed By: malaybag, angelayi
Differential Revision: D92433313
cc @voznesenskym @penguinwu @EikanWang @jgong5 @Guobing-Chen @XiaobingSuper @zhuhaozhe @blzheng @wenzhe-nrv @jiayisunx @ipiszy @kadeng @muchulee8 @amjames @chauhang @aakhundov @coconutruben @jataylo