Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PR #16775: Add test for EmitReducePrecisionIR #19381

Merged
merged 1 commit into from
Nov 15, 2024
Merged

Conversation

copybara-service[bot]
Copy link

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 [email protected]:

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_696730664 branch 2 times, most recently from 36ebf45 to 7a15369 Compare November 15, 2024 08:29
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 <[email protected]>:

Add test for EmitReducePrecisionIR

Merging this change closes #16775

COPYBARA_INTEGRATE_REVIEW=#16775 from apivovarov:elemental_ir_emitter_test 5972205
PiperOrigin-RevId: 696792994
@copybara-service copybara-service bot merged commit 521cd7b into main Nov 15, 2024
@copybara-service copybara-service bot deleted the test_696730664 branch November 15, 2024 08:46
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