Skip to content
This repository was archived by the owner on Oct 31, 2025. It is now read-only.

Conversation

@copybara-service
Copy link

@copybara-service copybara-service bot commented Aug 27, 2025

Remove more dtype canonicalization.

Notable changes:

  • Remove dtype canonicalization from many lax dtype rules. Dtype rules should always talk about post-canonicalized types.
  • Use check_and_canonicalize_user_dtype instead of canonicalize_dtype in many user-callable lax functions.
  • Change some calls to lax functions to pass canonicalized types to avoid new user warnings.
  • Move _convert_and_clip_integer into random.py, which is its only user.
  • In passing, rename _input_dtype to input_dtype because it is exported from its enclosing module.

@copybara-service copybara-service bot force-pushed the test_799277149 branch 2 times, most recently from a9928b7 to b2cd94c Compare August 27, 2025 19:19
@copybara-service copybara-service bot changed the title Remove more dtype canoncalization. Remove more dtype canonicalization. Aug 27, 2025
@copybara-service copybara-service bot force-pushed the test_799277149 branch 3 times, most recently from b6a242e to c5ac7e4 Compare August 27, 2025 22:06
@copybara-service copybara-service bot closed this Aug 27, 2025
@copybara-service copybara-service bot deleted the test_799277149 branch August 27, 2025 22:45
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants