diff options
author | Louis Verhaard <louis.verhaard@arm.com> | 2020-05-12 08:31:05 +0200 |
---|---|---|
committer | Tim Hall <tim.hall@arm.com> | 2020-06-18 17:53:52 +0100 |
commit | 0cf06c7437ee88ae93c9a8adc2467ea3729d40bb (patch) | |
tree | 115e0ffae49d37f667e12649150fd6f9f5e677e0 | |
parent | 3e9c4341acf6b8334977288e2079fec0be92ecb3 (diff) | |
download | ethos-u-vela-0cf06c7437ee88ae93c9a8adc2467ea3729d40bb.tar.gz |
MLBEDSW-1685: bug fix when IFM==IFM2 for elementwise ops
There was output diff when both IFMs are referring to the same tensor in
binary elementwise operations. IFM2 dimension-instructions were not written
by vela.
Change-Id: I40a0dcbc9557f7308222b7230e5586d8f2a04c6a
Signed-off-by: Louis Verhaard <louis.verhaard@arm.com>
-rw-r--r-- | ethosu/vela/register_command_stream_generator.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ethosu/vela/register_command_stream_generator.py b/ethosu/vela/register_command_stream_generator.py index c0402b32..0168c649 100644 --- a/ethosu/vela/register_command_stream_generator.py +++ b/ethosu/vela/register_command_stream_generator.py @@ -809,7 +809,7 @@ def generate_register_command_stream(nng, sg, arch, verbose=False): emit.cmd0_with_param(cmd0.NPU_SET_OFM_HEIGHT0_M1, height_0 - 1) emit.cmd0_with_param(cmd0.NPU_SET_OFM_HEIGHT1_M1, height_1 - 1) emit.cmd0_with_param(cmd0.NPU_SET_OFM_WIDTH0_M1, width_0 - 1) - elif tens == cmd.ifm2_tensor: + if tens == cmd.ifm2_tensor: emit.cmd0_with_param(cmd0.NPU_SET_IFM2_HEIGHT0_M1, height_0 - 1) emit.cmd0_with_param(cmd0.NPU_SET_IFM2_HEIGHT1_M1, height_1 - 1) emit.cmd0_with_param(cmd0.NPU_SET_IFM2_WIDTH0_M1, width_0 - 1) |