Skip to content

PR #16775: Add test for EmitReducePrecisionIR#19370

Closed
copybara-service[bot] wants to merge 1 commit into
mainfrom
test_696646489
Closed

PR #16775: Add test for EmitReducePrecisionIR#19370
copybara-service[bot] wants to merge 1 commit into
mainfrom
test_696646489

Conversation

@copybara-service

Copy link
Copy Markdown

PR #16775: Add test for EmitReducePrecisionIR

Imported from GitHub PR #16775

I noticed that the EmitReducePrecisionIR function from xla/service/elemental_ir_emitter.h is not covered by unit tests.

Given its non-trivial logic, I believe it should be thoroughly tested, particularly for corner cases.

Changes in this PR:

  • Declare EmitReducePrecisionIR function in xla/service/elemental_ir_emitter.h
  • Add EmitReducePrecisionIR_F16ToF8e5m2 test
  • Add EmitReducePrecisionIR_F16ToF8e4m3fn test

Related PR:

Copybara import of the project:

--
5972205 by Alexander Pivovarov pivovaa@amazon.com:

Add test for EmitReducePrecisionIR

Merging this change closes #16775

FUTURE_COPYBARA_INTEGRATE_REVIEW=#16775 from apivovarov:elemental_ir_emitter_test 5972205

@copybara-service copybara-service Bot force-pushed the test_696646489 branch 2 times, most recently from f9c01b1 to 5a20a86 Compare November 15, 2024 00:36
Imported from GitHub PR #16775

I noticed that the `EmitReducePrecisionIR` function from `xla/service/elemental_ir_emitter.h` is not covered by unit tests.

Given its non-trivial logic, I believe it should be thoroughly tested, particularly for corner cases.

Changes in this PR:
- Declare `EmitReducePrecisionIR` function in `xla/service/elemental_ir_emitter.h`
- Add `EmitReducePrecisionIR_F16ToF8e5m2` test
- Add `EmitReducePrecisionIR_F16ToF8e4m3fn` test

Related PR:
- [PR-16585](#16585) Add support for float8_e4m3

Copybara import of the project:

--
5972205 by Alexander Pivovarov <pivovaa@amazon.com>:

Add test for EmitReducePrecisionIR

Merging this change closes #16775

FUTURE_COPYBARA_INTEGRATE_REVIEW=#16775 from apivovarov:elemental_ir_emitter_test 5972205
PiperOrigin-RevId: 696646489
@ml-pr-cleanup

ml-pr-cleanup Bot commented May 19, 2025

Copy link
Copy Markdown

Closing Copybara created PR due to inactivity

@ml-pr-cleanup ml-pr-cleanup Bot closed this May 19, 2025
@ml-pr-cleanup ml-pr-cleanup Bot deleted the test_696646489 branch May 19, 2025 21:44
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