Skip to content

Conversation

@lhutton1
Copy link
Contributor

This commit introduces constant folding for the tosa.add_shape operation. When both operands of the add_shape operation are constant shapes, the operation is evaluated at compile-time.

Note: this PR currently contains the contents of other PR's: #172691, #172695

This commit moves the 'simple' folder tests (invoked via
`--canonicalize`) away from other layerwise constant folding
tests (invoked via `--tosa-layerwise-constant-fold`) into a
separate test file to help reduce confusion.

Also rename the layerwise folding test file to reflect the
the pass name that they are invoked by.

Change-Id: I22bfa76480eddd8f850702986d79608d956e766a
For these folders to be TOSA compliant, they need to check
for overflow. This commit adds those checks, subsequently
preventing folding if an overflow is detected.

This commit also fixes the greater/greater_equal folders
to account for unsigned types.

Change-Id: I2b5a5b92fb840d6c34a1f2faa18ae68a20d0ecdf
This commit introduces constant folding for the tosa.add_shape
operation. When both operands of the add_shape operation are
constant shapes, the operation is evaluated at compile-time.

Change-Id: I5567fae8290bf238f809088573d40666fe3bdf51
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