Skip to content

Conversation

@copybara-service
Copy link

Relax shape check in _compute_fans.

The error for a shape of length 1 or less is now only raised when in_axis is -2. This allows _compute_fans to be used with 1D/0D shapes when custom axes are specified.

@copybara-service copybara-service bot force-pushed the test_821295055 branch 3 times, most recently from ae62b80 to 2d932d6 Compare October 22, 2025 15:43
The error for a shape of length 1 or less is now only raised when `in_axis` is `-2`. This allows `_compute_fans` to be used with 1D/0D shapes when custom axes are specified.

PiperOrigin-RevId: 822616111
@copybara-service copybara-service bot merged commit 5466dd7 into main Oct 22, 2025
@copybara-service copybara-service bot deleted the test_821295055 branch October 22, 2025 16:14
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