MLBEDSW-4286: Bug fix Concat using IFM streaming
IFM box calculation was wrong because 2 variables were
referencing/updating the same list.
Signed-off-by: Louis Verhaard <louis.verhaard@arm.com>
Change-Id: Ibed4e94c474682e14a6dd898029f14af11c9479a
diff --git a/ethosu/vela/high_level_command_stream_generator.py b/ethosu/vela/high_level_command_stream_generator.py
index 23d3a4f..aad3783 100644
--- a/ethosu/vela/high_level_command_stream_generator.py
+++ b/ethosu/vela/high_level_command_stream_generator.py
@@ -84,7 +84,7 @@
for op in ps.ops:
if op.write_offset is not None:
concat_offset = op.write_offset.as_list()
- ofm_start = concat_offset
+ ofm_start = concat_offset[:]
ofm_end = (op.write_offset + op.write_shape).as_list()
if op.type.is_relu_op() or op.type in (Op.Tanh, Op.Sigmoid):
ps.primary_op.activation = create_activation_function(op.type)