Skip to content
Commit b7dbfd04 authored by Lei Zhang's avatar Lei Zhang Committed by jpienaar
Browse files

Const fold splat tensors for TFLite AddOp, SubOp, MulOp

The constant folding rules assumes value attributes of operands are already
verified to be in good standing.

For each op in the above, the constant folding rules support both integer and
floating point cases. Broadcast behavior is also supported as per the semantics
of TFLite ops.

This CL does not handle overflow/underflow cases yet.

PiperOrigin-RevId: 229441221
parent f9d2eb1c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment