Skip to content

Commit

Permalink
additional operator relocation check.
Browse files Browse the repository at this point in the history
  • Loading branch information
ddavis-2015 committed Oct 30, 2024
1 parent 8c53ee3 commit fc4b473
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tensorflow/lite/micro/compression/relocate_ops.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,9 @@ def process_operator_var_handle(context: Context) -> VarHandles:

def process_operator_assign_variable(context: Context) -> VarHandles:
assign_op = context.current_op()
pending_concat_op = context.get_concat_op_by_tensor(
assign_op.inputs_indices[1], assign_op.subgraph.index)
assert pending_concat_op is None
read_var_op = context.get_read_var_op_by_tensor(assign_op.inputs_indices[1],
assign_op.subgraph.index)
if read_var_op is not None:
Expand Down

0 comments on commit fc4b473

Please sign in to comment.