Skip to content

Conversation

mplatings
Copy link
Contributor

The logic to handle bias already existed in varying degrees of completeness for the various CONV operations. This change unifies that logic in a single function and reuses it for operations from which it was missing.

The TOSA 1.0 specification permits that bias may be of shape [1]. This change takes advantage of that fact to simplify the logic. The change in behaviour is reflected in the tests.

Change-Id: I97371fae425ca8e45b18705c71bd106d08f203d6

@google-ml-butler google-ml-butler bot added the size:L CL Change Size: Large label Mar 27, 2025
@mplatings mplatings marked this pull request as draft March 27, 2025 18:25
The logic to handle bias already existed in varying degrees of
completeness for the various CONV operations. This change unifies that
logic in a single function and reuses it for operations from which it
was missing.

The TOSA 1.0 specification permits that bias may be of shape [1].
This change takes advantage of that fact to simplify the logic.
The change in behaviour is reflected in the tests.

Signed-off-by: Michael Platings <michael.platings@arm.com>
Change-Id: I97371fae425ca8e45b18705c71bd106d08f203d6
@mplatings mplatings marked this pull request as ready for review April 1, 2025 08:52
Copy link
Contributor

@lhutton1 lhutton1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@google-ml-butler google-ml-butler bot added kokoro:force-run Tests on submitted change ready to pull PR ready for merge process labels Apr 1, 2025
@kokoro-team kokoro-team removed the kokoro:force-run Tests on submitted change label Apr 1, 2025
Copy link
Collaborator

@leandron leandron left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks @mplatings and @lhutton1.

@google-ml-butler google-ml-butler bot added the kokoro:force-run Tests on submitted change label Apr 1, 2025
@leandron leandron merged commit e43dce0 into tensorflow:master Apr 1, 2025
1 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kokoro:force-run Tests on submitted change ready to pull PR ready for merge process size:L CL Change Size: Large
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants