Skip to content

Conversation

copybara-service[bot]
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.

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: 821295055
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