aboutsummaryrefslogtreecommitdiff
path: root/ethosu/vela/register_command_stream_util.py
diff options
context:
space:
mode:
authorMichael McGeagh <michael.mcgeagh@arm.com>2020-12-02 12:39:03 +0000
committerpatrik.gustavsson <patrik.gustavsson@arm.com>2020-12-08 14:58:19 +0000
commitf3e3ad746de943e312c290d614184c0f6559ac1f (patch)
tree44f6eac5a6b1aec4114ad2c2faddced820ea1e17 /ethosu/vela/register_command_stream_util.py
parentd9c2c4258c50f04ef3a6c3849508d317249e8ebf (diff)
downloadethos-u-vela-f3e3ad746de943e312c290d614184c0f6559ac1f.tar.gz
MLBEDSW-2836 Change sets to tuples
Replace conditional checks against sets with tuples. If not requiring uniqueness, or complex set operations, it is quicker to use tuples instead. Signed-off-by: Michael McGeagh <michael.mcgeagh@arm.com> Change-Id: Ie8732c8d46067244963936c53f0ec81adda50372
Diffstat (limited to 'ethosu/vela/register_command_stream_util.py')
-rw-r--r--ethosu/vela/register_command_stream_util.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ethosu/vela/register_command_stream_util.py b/ethosu/vela/register_command_stream_util.py
index ca7e6bc6..ce49fc29 100644
--- a/ethosu/vela/register_command_stream_util.py
+++ b/ethosu/vela/register_command_stream_util.py
@@ -46,7 +46,7 @@ from ethosu.vela.range_set import MemoryRangeSet
BASE_PTR_INDEX_MEM2MEM = int((1 << 8) | (3 << 0))
-UNARY_ELEMWISE_OPS = set((NpuElementWiseOp.ABS, NpuElementWiseOp.LRELU, NpuElementWiseOp.CLZ,))
+UNARY_ELEMWISE_OPS = (NpuElementWiseOp.ABS, NpuElementWiseOp.LRELU, NpuElementWiseOp.CLZ)
def to_npu_kernel(kernel: Kernel) -> NpuKernel: