Skip to content
Commit 3c4f0bbb authored by Johan Gunnarsson's avatar Johan Gunnarsson Committed by Rickard Bolin
Browse files

MLBEDSW-9780: Add placeholder tensors to unconnected ops



The TFLite CallOnce and TFLite AssignVariable has no OFM and will
therefore not be reachable when traversing the graph starting from
the graph output tensors, but we still need to keep them in the
graph so we can pass them to CPU. This change discovers such
unconnected ops when loading the graph, and adds a placeholder
output tensors to them and stores the placeholder tensors in both
graph outputs and in a separate list. Later when writing out this
graph, remove these placeholder tensors again.

Do the same for ops without input tensor.

Signed-off-by: Johan Gunnarsson's avatarJohan Gunnarsson <johan.gunnarsson@arm.com>
Change-Id: I68c963c8b9c447527eb16ef415b85ac0253f9ff6
parent e6c6b4e0
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment