From c0aeacbdbf1d030bc2ef517bfa317612064361b5 Mon Sep 17 00:00:00 2001 From: windclarion Date: Fri, 3 Jul 2020 11:40:04 +0800 Subject: [PATCH] [TARGET] each option of target str should only contain one '=' src/target/target_id.cc ParseAttrsFromRawString L222: if ((pos = FindUniqueSubstr(s, "=")) != -1) require option contains only one '=' Signed-off-by: windclarion --- python/tvm/target/target.py | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/python/tvm/target/target.py b/python/tvm/target/target.py index a2a4501da57e9..3e2053f1447a0 100644 --- a/python/tvm/target/target.py +++ b/python/tvm/target/target.py @@ -194,16 +194,16 @@ def arm_cpu(model='unknown', options=None): Additional options """ trans_table = { - "pixel2": ["-model=snapdragon835", "-target=arm64-linux-android -mattr=+neon"], - "mate10": ["-model=kirin970", "-target=arm64-linux-android -mattr=+neon"], - "mate10pro": ["-model=kirin970", "-target=arm64-linux-android -mattr=+neon"], - "p20": ["-model=kirin970", "-target=arm64-linux-android -mattr=+neon"], - "p20pro": ["-model=kirin970", "-target=arm64-linux-android -mattr=+neon"], - "rasp3b": ["-model=bcm2837", "-target=armv7l-linux-gnueabihf -mattr=+neon"], - "rasp4b": ["-model=bcm2711", "-target=arm-linux-gnueabihf -mattr=+neon"], - "rk3399": ["-model=rk3399", "-target=aarch64-linux-gnu -mattr=+neon"], - "pynq": ["-model=pynq", "-target=armv7a-linux-eabi -mattr=+neon"], - "ultra96": ["-model=ultra96", "-target=aarch64-linux-gnu -mattr=+neon"], + "pixel2": ["-model=snapdragon835", "-target=arm64-linux-android", "-mattr=+neon"], + "mate10": ["-model=kirin970", "-target=arm64-linux-android", "-mattr=+neon"], + "mate10pro": ["-model=kirin970", "-target=arm64-linux-android", "-mattr=+neon"], + "p20": ["-model=kirin970", "-target=arm64-linux-android", "-mattr=+neon"], + "p20pro": ["-model=kirin970", "-target=arm64-linux-android", "-mattr=+neon"], + "rasp3b": ["-model=bcm2837", "-target=armv7l-linux-gnueabihf", "-mattr=+neon"], + "rasp4b": ["-model=bcm2711", "-target=arm-linux-gnueabihf", "-mattr=+neon"], + "rk3399": ["-model=rk3399", "-target=aarch64-linux-gnu", "-mattr=+neon"], + "pynq": ["-model=pynq", "-target=armv7a-linux-eabi", "-mattr=+neon"], + "ultra96": ["-model=ultra96", "-target=aarch64-linux-gnu", "-mattr=+neon"], } pre_defined_opt = trans_table.get(model, ["-model=%s" % model])