From 3eec59b22128462eef668dbfb770c6924aeee40f Mon Sep 17 00:00:00 2001 From: Won Jeon Date: Mon, 11 Mar 2024 22:17:13 +0000 Subject: Add extensions & profiles support to conformance generator Support existing conformance profiles to ease transition New combined config tosa_ext_profile_ops_info.json that supports extension selection Signed-off-by: Won Jeon Signed-off-by: Jeremy Johnson Change-Id: Ic04696a01d619d191b9c8abc4ef7f4e8b86c52ca --- verif/conformance/tosa_profiles.py | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 verif/conformance/tosa_profiles.py (limited to 'verif/conformance/tosa_profiles.py') diff --git a/verif/conformance/tosa_profiles.py b/verif/conformance/tosa_profiles.py new file mode 100644 index 0000000..9aa1ceb --- /dev/null +++ b/verif/conformance/tosa_profiles.py @@ -0,0 +1,34 @@ +# Copyright (c) 2024, ARM Limited. +# SPDX-License-Identifier: Apache-2.0 + + +class TosaProfiles: + TosaBI = "tosa-bi" + TosaMI = "tosa-mi" + TosaExtInt16 = "tosa-ext-int16" + TosaExtInt4 = "tosa-ext-int4" + TosaExtBF16 = "tosa-ext-bf16" + TosaExtFP8E4M3 = "tosa-ext-fp8e4m3" + TosaExtFP8E5M2 = "tosa-ext-fp8e5m2" + TosaExtFFT = "tosa-ext-fft" + TosaExtVariable = "tosa-ext-variable" + + @staticmethod + def profiles(): + return [TosaProfiles.TosaBI, TosaProfiles.TosaMI] + + @staticmethod + def extensions(): + return [ + TosaProfiles.TosaExtInt16, + TosaProfiles.TosaExtInt4, + TosaProfiles.TosaExtBF16, + TosaProfiles.TosaExtFP8E4M3, + TosaProfiles.TosaExtFP8E5M2, + TosaProfiles.TosaExtFFT, + TosaProfiles.TosaExtVariable, + ] + + @staticmethod + def all(): + return TosaProfiles.profiles() + TosaProfiles.extensions() -- cgit v1.2.1