xref: /aosp_15_r20/external/executorch/backends/qualcomm/utils/constants.py (revision 523fa7a60841cd1ecfb9cc4201f1ca8b03ed023a)
1# Copyright (c) Qualcomm Innovation Center, Inc.
2# All rights reserved
3#
4# This source code is licensed under the BSD-style license found in the
5# LICENSE file in the root directory of this source tree.
6
7# Qualcomm specific key
8
9# constants in backends/qualcomm/_passes & backends/qualcomm/builders
10QCOM_AXIS = "axis"
11QCOM_AXIS_ORDER = "axis_order"
12QCOM_BITWIDTH = "bitwidth"
13QCOM_DATA = "data"
14QCOM_DTYPE = "dtype"
15QCOM_ENCODING = "encoding"
16QCOM_INSERTED_PERMUTE = "qnn_permute"
17QCOM_LAYOUT_CHANGE = "layout_change"
18QCOM_OFFSET = "offset"
19QCOM_QUANTIZED_IO = "q_tensor_io"
20QCOM_QUANT_ATTRS = "quant_attrs"
21QCOM_QUANT_MIN = "quant_min"
22QCOM_QUANT_MAX = "quant_max"
23QCOM_REQUANTIZE = "requantize"
24QCOM_SCALE = "scale"
25QCOM_SCALES = "scales"
26QCOM_SCALE_OFFSET = "scale_offset"
27QCOM_ZERO_POINT = "zero_point"
28QCOM_ZERO_POINTS = "zero_points"
29QCOM_PASS_EXPAND_BROADCAST_SHAPE = "expand_broadcast_shape"
30QCOM_PASS_SKIP_ADVANCED_REQUANT = "skip_advanced_requant"
31
32# constants in backends/qualcomm/tests
33QCOM_ANNOTATION = "annotation"
34QCOM_MODULE = "module"
35QCOM_QUANT_DTYPE = "quant_dtype"
36QCOM_SAMPLE_INPUTS = "sample_inputs"
37
38# constants in backends/qualcomm/utils
39QCOM_QNN_COMPILE_SPEC = "qnn_compile_spec"
40