Home
last modified time | relevance | path

Searched full:if (Results 1 – 25 of 180) sorted by relevance

12345678

/cmsis-nn-latest/Source/
DCMakeLists.txt38 # Always needed if any other module above is on.
46 if (BASICMATHSNN)
50 if (CONCATENATION)
54 if (FULLYCONNECTED)
58 if (CONVOLUTION)
62 if (ACTIVATION)
66 if (POOLING)
70 if (SOFTMAX)
74 if (SVDF)
78 if (LSTM)
[all …]
/cmsis-nn-latest/Tests/UnitTest/
Dunittest_targets.py59 help="Just download Unity and generate test runners if needed")
78 if not line:
80 if re.search(r"^\| ", line):
90 if return_code != 0:
102 if die and process.returncode != 0:
118 if core:
120 if core[:8] == 'Cortex-M':
147 if not path.exists("mbed-os.lib"):
193 if stop():
223 if inputQueue.qsize() > 0:
[all …]
Dconv_settings.py97 if int16xint8_int32:
98 if not self.is_int16xint8:
100 if not self.test_type == 'conv':
104 if self.test_type == 'depthwise_conv':
106 if self.output_ch % self.input_ch != 0:
108 if groups != 1:
114 if in_ch % groups != 0:
116 if out_ch % groups != 0:
119 if self.int4_weights:
120 if self.test_type == 'conv':
[all …]
Dbuild_and_run_tests.sh82 if [[ -d ${WORKING_DIR}/corstone300_download ]]; then
83 …echo "Corstone300 already installed. If you wish to install a new version, please delete the old f…
85 if [[ ${UNAME_M} == x86_64 ]]; then
101 if [[ -d ${WORKING_DIR}/arm_gcc_download ]]; then
102 …echo "Arm GCC already installed. If you wish to install a new version, please delete the old folde…
104 if [[ ${UNAME_M} == x86_64 ]]; then
118 if [[ -d ${WORKING_DIR}/CMSIS_5 ]]; then
119 …echo "CMSIS-5 already installed. If you wish to install a new version, please delete the old folde…
125 if [[ -d ${WORKING_DIR}/ethos-u-core-platform ]]; then
126 …echo "Ethos-U core platform already installed. If you wish to install a new version, please delete…
[all …]
Dmodel_extractor.py51 if not (type_size == 1 or type_size == 2 or type_size == 4):
58 if count % type_size == 0:
70 if schema is None:
76 if process.returncode != 0:
101 if op_name == "SOFTMAX":
106 if not self.is_int16xint8:
134 if op_name == "FULLY_CONNECTED":
138 if op_name == "DEPTHWISE_CONV_2D":
145 if layer_name == "AVERAGE_POOL_2D":
162 if len(input_shape) == 4:
[all …]
Dfully_connected_settings.py91 if self.int4_weights or self.filter_zero_point:
92 if self.generate_bias:
97 weight_type = "INT4" if self.int4_weights else "INT8"
132 if input_product_scale < 0:
139 if self.is_int16xint8:
150 if input_data is not None:
156 if self.generate_bias:
161 if self.filter_zero_point:
166 if weights is not None:
190 if weights is not None:
[all …]
Dtest_settings.py36 …# This is input to the data generation. If everything or something is regenerated then it is overw…
91if self.INT8_MIN != np.iinfo(np.dtype('int8')).min or self.INT8_MAX != np.iinfo(np.dtype('int8')).…
98 if interpreter == "tflite_runtime":
162 if relu6:
166 if out_activation_min is not None:
169 self.out_activation_min = self.INT16_MIN if self.is_int16xint8 else self.INT8_MIN
170 if out_activation_max is not None:
173 self.out_activation_max = self.INT16_MAX if self.is_int16xint8 else self.INT8_MAX
189 if self.has_padding:
224 if len(qminmax) == 2:
[all …]
/cmsis-nn-latest/Documentation/Doxygen/style_template/
Dnavtree.js76 if (!$("#nav-sync").hasClass('sync') && localStorageSupported()) {
83 if (localStorageSupported()) {
90 if (localStorageSupported()) {
113 if (node.childrenData) {
122 if (node.expanded) {
147 if (ancParent.hasClass('memItemLeft') ||
154 } else if (anchor.position()) {
157 if (pos) {
166 if (updateLocation) window.location.href=aname;
200 if (link) {
[all …]
Dresize.js33 if (window.chrome) {
35 if (val) return val;
38 if (document.cookie) {
40 if (index != -1) {
43 if (valEnd == -1) {
56 if (window.chrome) {
71 if (typeof page_layout!=='undefined' && page_layout==1) {
81 if (typeof page_layout!=='undefined' && page_layout==1) {
93 if (typeof page_layout==='undefined' || page_layout==0) { /* DISABLE_INDEX=NO */
97 } else if (page_layout==1) { /* DISABLE_INDEX=YES */
[all …]
Ddarkmode_toggle.js49 if (document.visibilityState === 'visible') {
64 if (!tbuttons.length){
70 if (DarkModeToggle.darkModeEnabled){
76 if (mainMenu) {
81 if (searchBox) { // (1) search box visible
83 } else if (navRow1) { // (2) no search box, static menu bar
90 } else if (mainMenu && mainMenuVisible) { // (3) no search box + dynamic menu bar expanded
96 } else if (searchBoxPos1) { // (4) no search box + dynamic menu bar collapsed
100 } else if (titleArea) { // (5) no search box and no navigation tabs
128 if (days) {
[all …]
/cmsis-nn-latest/Tests/UnitTest/RefactoredTestGen/Lib/
Dop_conv.py37 if params["tflite_generator"] == "json":
59 if params["generate_bias"]:
69 if params["generate_bias"]:
84 if params["generate_bias"]:
93 if params["padding"] == "SAME":
144 params["stride_x"] = 1 if "stride_x" not in params else params["stride_x"]
145 params["stride_y"] = 1 if "stride_y" not in params else params["stride_y"]
146 params["dilation_x"] = 1 if "dilation_x" not in params else params["dilation_x"]
147 params["dilation_y"] = 1 if "dilation_y" not in params else params["dilation_y"]
148 params["batch_size"] = 1 if "batch_size" not in params else params["batch_size"]
[all …]
Dtest.py57 # Check if test is valid, skip otherwise
58 if (params["interpreter"] == "tflite_runtime") and (not tflite_runtime_imported):
61 if (params["interpreter"] == "tflite_micro") and (not tflite_micro_imported):
75 if params["tflite_generator"] == "keras":
84 if "bias_data_type" in params:
120 …minval = Lib.op_utils.get_dtype_min(params["input_data_type"]) if "input_min" not in params else p…
121 …maxval = Lib.op_utils.get_dtype_max(params["input_data_type"]) if "input_max" not in params else p…
128 if "input_tensor" in shape_name:
129 if shape_name in data.tensors:
135 if not input_tensors:
[all …]
Dop_fully_connected.py36 if input_product_scale < 0:
48 params["batch_size"] = 1 if "batch_size" not in params else params["batch_size"]
49 params["generate_bias"] = True if "generate_bias" not in params else params["generate_bias"]
50 if "out_activation_min" not in params:
52 if "out_activation_max" not in params:
55 if params["weights_data_type"] == "int4_t":
67 if "bias_min" not in params:
69 if "bias_max" not in params:
72 if "weights_min" not in params:
74 if "weights_max" not in params:
[all …]
Dop_utils.py80 if "bias" in name:
83 if params["weights_data_type"] == "int4_t":
95 if dtype == "int8_t":
97 if dtype == "int16_t":
104 if dtype == "int8_t" or dtype == "int4_t":
106 if dtype == "int16_t":
108 if dtype == "int32_t":
110 if dtype == "int64_t":
117 if dtype == "int8_t" or dtype == "int4_t":
130 if dtype == "int4_t":
[all …]
/cmsis-nn-latest/Documentation/Doxygen/
Dnn.dxy.in63 # could be handy for archiving the generated documentation or if some version
82 # into which the generated documentation will be written. If a relative path is
83 # entered, it will be relative to the location where doxygen was started. If
88 # If the CREATE_SUBDIRS tag is set to YES then doxygen will create up to 4096
110 # If the ALLOW_UNICODE_NAMES tag is set to YES, doxygen will allow non-ASCII
111 # characters to appear in the names of generated files. If set to NO, non-ASCII
133 # If the BRIEF_MEMBER_DESC tag is set to YES, doxygen will include brief member
140 # If the REPEAT_BRIEF tag is set to YES, doxygen will prepend the brief
143 # Note: If both HIDE_UNDOC_MEMBERS and BRIEF_MEMBER_DESC are set to NO, the
150 # used to form the text in various listings. Each string in this list, if found
[all …]
/cmsis-nn-latest/Source/ConvolutionFunctions/
Darm_convolve_s8.c64 if (ctx->buf == NULL) in arm_convolve_s8()
99 if (input_ch % groups != 0 || output_ch % groups != 0) in arm_convolve_s8()
109 if (upscale_dims) in arm_convolve_s8()
124 #if defined(ARM_MATH_MVEI) in arm_convolve_s8()
152 if (y_rshift == 1 || x_rshift == 1) in arm_convolve_s8()
161 … // Don't copy data when padding, or for every second row if stride_y == 2 in arm_convolve_s8()
162 if ((k_y < 0 || k_y >= input_y) || (k_y % 2 && y_rshift == 1)) in arm_convolve_s8()
173 … // Don't copy data when padding, or for every second element if stride_x == 2 in arm_convolve_s8()
174if ((k_x >= 0 && k_x < input_x) && ((k_x % 2 == 0) || x_rshift == 0)) in arm_convolve_s8()
196 if (k_y < 0 || k_y >= input_y || k_x < 0 || k_x >= input_x) in arm_convolve_s8()
[all …]
Darm_convolve_s16.c64 if (ctx->buf == NULL) in arm_convolve_s16()
93 #if defined(ARM_MATH_MVEI) in arm_convolve_s16()
119 if (k_y < 0 || k_y >= input_y || k_x < 0 || k_x >= input_x) in arm_convolve_s16()
135 #if defined(ARM_MATH_MVEI) in arm_convolve_s16()
137 if (lhs_rows == 4) in arm_convolve_s16()
157 if (lhs_rows == 2) in arm_convolve_s16()
177 if (out == NULL) in arm_convolve_s16()
184 if (lhs_rows != 0) in arm_convolve_s16()
186 #if defined(ARM_MATH_MVEI) in arm_convolve_s16()
201 #else // #if defined(ARM_MATH_MVEI) in arm_convolve_s16()
[all …]
Darm_depthwise_conv_get_buffer_sizes_s8.c77 #if defined(ARM_MATH_MVEI) in arm_depthwise_conv_s8_opt_get_buffer_size()
95 #if defined(ARM_MATH_MVEI) in arm_depthwise_conv_wrapper_s8_get_buffer_size()
96if (input_dims->c == 1 && output_dims->c > CONVERT_DW_CONV_WITH_ONE_INPUT_CH_AND_OUTPUT_CH_ABOVE_T… in arm_depthwise_conv_wrapper_s8_get_buffer_size()
102 if (input_dims->c == output_dims->c && input_dims->n == 1 && dw_conv_params->dilation.w == 1 && in arm_depthwise_conv_wrapper_s8_get_buffer_size()
105 #if !defined(ARM_MATH_MVEI) in arm_depthwise_conv_wrapper_s8_get_buffer_size()
106 if (filter_dims->w == 3 && filter_dims->h == 3 && dw_conv_params->padding.h <= 1 && in arm_depthwise_conv_wrapper_s8_get_buffer_size()
125 if (input_dims->c == output_dims->c && input_dims->n == 1 && dw_conv_params->dilation.w == 1 && in arm_depthwise_conv_wrapper_s8_get_buffer_size_dsp()
128 if (filter_dims->w == 3 && filter_dims->h == 3 && dw_conv_params->padding.h <= 1 && in arm_depthwise_conv_wrapper_s8_get_buffer_size_dsp()
146 if (input_dims->c == output_dims->c && input_dims->n == 1 && dw_conv_params->dilation.w == 1 && in arm_depthwise_conv_wrapper_s8_get_buffer_size_mve()
152if (input_dims->c == 1 && output_dims->c > CONVERT_DW_CONV_WITH_ONE_INPUT_CH_AND_OUTPUT_CH_ABOVE_T… in arm_depthwise_conv_wrapper_s8_get_buffer_size_mve()
[all …]
Darm_convolve_get_buffer_sizes_s8.c45 #if defined(__ARMCC_VERSION) && (__ARMCC_VERSION >= 6010050) in arm_convolve_1x1_s8_fast_get_buffer_size_dsp()
81 if (right_pad_num + no_pad_num + left_pad_num != output_x) in arm_convolve_1_x_n_s8_get_buffer_size_mve()
97 #if defined(ARM_MATH_MVEI) in arm_convolve_s8_get_buffer_size()
112 #if !defined(ARM_MATH_MVEI) in arm_convolve_1_x_n_s8_get_buffer_size()
124 #if defined(ARM_MATH_DSP) && !defined(ARM_MATH_MVEI) in arm_convolve_1x1_s8_fast_get_buffer_size()
144 #if defined(ARM_MATH_MVEI) in arm_convolve_wrapper_s8_get_buffer_size()
150 if ((conv_params->padding.w == 0) && (conv_params->padding.h == 0) && (filter_dims->w == 1) && in arm_convolve_wrapper_s8_get_buffer_size()
153 if ((conv_params->stride.w == 1) && (conv_params->stride.h == 1)) in arm_convolve_wrapper_s8_get_buffer_size()
162 else if ((input_dims->h == 1) && (conv_params->dilation.w == 1) && (filter_dims->h == 1) && in arm_convolve_wrapper_s8_get_buffer_size()
180 if ((conv_params->padding.w == 0) && (conv_params->padding.h == 0) && (filter_dims->w == 1) && in arm_convolve_wrapper_s8_get_buffer_size_mve()
[all …]
/cmsis-nn-latest/Tests/UnitTest/TestCases/test_arm_depthwise_conv_s4_opt/
Dtest_arm_depthwise_conv_s4_opt.c91 if (ctx.buf) in depthwise_int4_1_arm_depthwise_conv_s4_opt()
93 … // The caller is responsible to clear the scratch buffers for security reasons if applicable. in depthwise_int4_1_arm_depthwise_conv_s4_opt()
112 if (ctx.buf) in depthwise_int4_1_arm_depthwise_conv_s4_opt()
114 … // The caller is responsible to clear the scratch buffers for security reasons if applicable. in depthwise_int4_1_arm_depthwise_conv_s4_opt()
136 if (ctx.buf) in depthwise_int4_1_arm_depthwise_conv_s4_opt()
138 … // The caller is responsible to clear the scratch buffers for security reasons if applicable. in depthwise_int4_1_arm_depthwise_conv_s4_opt()
207 if (ctx.buf) in depthwise_int4_2_arm_depthwise_conv_s4_opt()
209 … // The caller is responsible to clear the scratch buffers for security reasons if applicable. in depthwise_int4_2_arm_depthwise_conv_s4_opt()
228 if (ctx.buf) in depthwise_int4_2_arm_depthwise_conv_s4_opt()
230 … // The caller is responsible to clear the scratch buffers for security reasons if applicable. in depthwise_int4_2_arm_depthwise_conv_s4_opt()
[all …]
/cmsis-nn-latest/Source/BasicMathFunctions/
Darm_minimum_s8.c46 #if defined(ARM_MATH_MVEI) in arm_min_no_broadcast_s8()
76 #if defined(ARM_MATH_MVEI) in arm_min_scalar_s8()
134 if (arm_check_broadcast_required(input_1_dims, input_2_dims)) in arm_minimum_s8()
136 if (flat_size_1 == 1) in arm_minimum_s8()
141 else if (flat_size_2 == 1) in arm_minimum_s8()
167 if (input_1_height == input_2_height && input_1_width == input_2_width && in arm_minimum_s8()
173 else if (flat_size_1 == 1) in arm_minimum_s8()
178 else if (flat_size_2 == 1) in arm_minimum_s8()
189 if (input_1_width == input_2_width && input_1_channels == input_2_channels) in arm_minimum_s8()
196 else if (flat_size_1 == 1) in arm_minimum_s8()
[all …]
Darm_maximum_s8.c46 #if defined(ARM_MATH_MVEI) in arm_max_no_broadcast_s8()
76 #if defined(ARM_MATH_MVEI) in arm_max_scalar_s8()
133 if (arm_check_broadcast_required(input_1_dims, input_2_dims)) in arm_maximum_s8()
135 if (flat_size_1 == 1) in arm_maximum_s8()
140 else if (flat_size_2 == 1) in arm_maximum_s8()
166 if (input_1_height == input_2_height && input_1_width == input_2_width && in arm_maximum_s8()
172 else if (flat_size_1 == 1) in arm_maximum_s8()
178 else if (flat_size_2 == 1) in arm_maximum_s8()
190 if (input_1_width == input_2_width && input_1_channels == input_2_channels) in arm_maximum_s8()
197 else if (flat_size_1 == 1) in arm_maximum_s8()
[all …]
/cmsis-nn-latest/Tests/UnitTest/TestCases/test_arm_depthwise_conv_s4/
Dtest_arm_depthwise_conv_s4.c92 if (ctx.buf) in depthwise_int4_generic_arm_depthwise_conv_s4()
94 … // The caller is responsible to clear the scratch buffers for security reasons if applicable. in depthwise_int4_generic_arm_depthwise_conv_s4()
114 if (ctx.buf) in depthwise_int4_generic_arm_depthwise_conv_s4()
116 … // The caller is responsible to clear the scratch buffers for security reasons if applicable. in depthwise_int4_generic_arm_depthwise_conv_s4()
185 if (ctx.buf) in depthwise_int4_generic_2_arm_depthwise_conv_s4()
187 … // The caller is responsible to clear the scratch buffers for security reasons if applicable. in depthwise_int4_generic_2_arm_depthwise_conv_s4()
207 if (ctx.buf) in depthwise_int4_generic_2_arm_depthwise_conv_s4()
209 … // The caller is responsible to clear the scratch buffers for security reasons if applicable. in depthwise_int4_generic_2_arm_depthwise_conv_s4()
278 if (ctx.buf) in depthwise_int4_generic_3_arm_depthwise_conv_s4()
280 … // The caller is responsible to clear the scratch buffers for security reasons if applicable. in depthwise_int4_generic_3_arm_depthwise_conv_s4()
[all …]
/cmsis-nn-latest/Include/Internal/
Darm_nn_compiler.h39 #if defined(__ARMCC_VERSION) && (__ARMCC_VERSION >= 6010050)
120 * @brief Compiler specific diagnostic adjustment / fixes if applicable
125 #if defined(__GNUC__)
126 #if (__GNUC__ == 12 && (__GNUC_MINOR__ <= 2)) && defined(__ARM_ARCH)
133 #if defined(__ARM_FEATURE_MVE) && ((__ARM_FEATURE_MVE & 3) == 3) || (__ARM_FEATURE_MVE & 1)
137 #if defined(__ARM_ARCH) || defined(__ARM_ACLE)
141 #if defined(__GNUC__)
155 #if defined(__ARMCC_VERSION) && (__ARMCC_VERSION >= 6010050) || defined(__ICCARM__)
168 This guarantees Arm-compatible results if compiling on a non-Arm in CLZ()
175 if (value == 0U) in CLZ()
[all …]
/cmsis-nn-latest/Include/
Darm_nnfunctions.h69 …* @param[in, out] ctx Function context that contains the additional buffer if required …
70 … arm_convolve_wrapper_s4_get_buffer_size will return the buffer_size if required.
71 …* The caller is expected to clear the buffer ,if applicable, for se…
88 * <code>ARM_CMSIS_NN_ARG_ERROR</code> if argument constraints fail. or,
127 * @note Intended for compilation on Host. If compiling for an Arm target, use
141 * @note Intended for compilation on Host. If compiling for an Arm target, use
154 …* @param[in, out] ctx Function context that contains the additional buffer if required …
155 … arm_convolve_wrapper_s8_get_buffer_size will return the buffer_size if required.
156 …* The caller is expected to clear the buffer, if applicable, for se…
173 * <code>ARM_CMSIS_NN_ARG_ERROR</code> if argument constraints fail. or,
[all …]

12345678