diff options
Diffstat (limited to 'ethosu/vela/register_command_stream_generator.py')
-rw-r--r-- | ethosu/vela/register_command_stream_generator.py | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/ethosu/vela/register_command_stream_generator.py b/ethosu/vela/register_command_stream_generator.py index 8f34e639..acfd25a2 100644 --- a/ethosu/vela/register_command_stream_generator.py +++ b/ethosu/vela/register_command_stream_generator.py @@ -968,13 +968,11 @@ def generate_register_command_stream(nng, sg, arch, verbose=False): emit.cmd0_with_param(cmd0.NPU_SET_IFM2_WIDTH0_M1, width_0 - 1) else: if len(out_shape) == 2: - # TODO: N is put in W-dimension for now - # Should be spread over H and W, but then block size selectetion, - # and stride calculation should be changed + assert out_shape[0] == 1 if tens == cmd.ifm_tensor: - emit.cmd0_with_param(cmd0.NPU_SET_IFM_WIDTH0_M1, out_shape[-2] - 1) + emit.cmd0_with_param(cmd0.NPU_SET_IFM_WIDTH0_M1, 0) elif tens == cmd.ofm_tensor: - emit.cmd0_with_param(cmd0.NPU_SET_OFM_WIDTH0_M1, out_shape[-2] - 1) + emit.cmd0_with_param(cmd0.NPU_SET_OFM_WIDTH0_M1, 0) else: assert False |