/AliOS-Things-master/components/py_engine/tests/float/ |
A D | builtin_float_minmax.py | 4 max 14 print(max(0, 1.0)) 15 print(max(1.0, 0)) 16 print(max(0, -1.0)) 17 print(max(-1.0, 0)) 22 print(max(1.5, -1.5)) 23 print(max(-1.5, 1.5)) 26 print(max([1, 2.9, 4, 0, -1, 2])) 29 print(max([1, 2.9, 4, 6.5, -1, 2])) 31 print(max([1, 2.9, 4, -6.5, -1, 2]))
|
/AliOS-Things-master/components/py_engine/tests/basics/ |
A D | builtin_minmax.py | 4 max 14 print(max(0,1)) 15 print(max(1,0)) 16 print(max(0,-1)) 17 print(max(-1,0)) 20 print(max([1,2,4,0,-1,2])) 28 print(max(lst, key=lambda x:x)) 29 print(max(lst, key=lambda x:-x)) 30 print(max(1, 2, 3, 4, key=lambda x:-x)) 31 print(max(4, 3, 2, 1, key=lambda x:-x)) [all …]
|
/AliOS-Things-master/components/ai_agent/src/engine/tflite-micro/tensorflow/lite/kernels/internal/reference/integer_ops/ |
A D | pooling.h | 90 std::numeric_limits<int8_t>::max()); in MaxPool() 124 max = std::max( in MaxPool() 125 max, in MaxPool() 129 max = std::max<int8_t>(max, params.quantized_activation_min); in MaxPool() 130 max = std::min<int8_t>(max, params.quantized_activation_max); in MaxPool() 132 static_cast<int8_t>(max); in MaxPool() 240 max = std::max( in MaxPool() 241 max, in MaxPool() 245 max = std::max<int16_t>(max, params.quantized_activation_min); in MaxPool() 246 max = std::min<int16_t>(max, params.quantized_activation_max); in MaxPool() [all …]
|
/AliOS-Things-master/components/SDL2/src/image/external/zlib-1.2.11/examples/ |
A D | enough.c | 235 (((code_t)1 << (max - len)) - 1); in count() 410 for (n = 0; n <= max; n++) in enough() 474 max = 15; in main() 480 max = atoi(argv[3]); in main() 490 if (max > syms - 1) in main() 491 max = syms - 1; in main() 498 if (max > n || (code_t)(syms - 2) >= (((code_t)0 - 1) >> (max - 1))) { in main() 506 syms, max); in main() 511 code = calloc(max + 1, sizeof(int)); in main() 546 if (max < syms - 1) in main() [all …]
|
/AliOS-Things-master/components/ai_agent/src/engine/tflite-micro/tensorflow/lite/kernels/internal/reference/ |
A D | pooling.h | 50 const int filter_x_start = std::max(0, -in_x_origin); in AveragePool() 53 const int filter_y_start = std::max(0, -in_y_origin); in AveragePool() 219 float max = std::numeric_limits<float>::lowest(); in MaxPool() local 226 max = std::max( in MaxPool() 227 max, in MaxPool() 273 uint8_t max = 0; in MaxPool() local 280 max = std::max( in MaxPool() 281 max, in MaxPool() 285 max = std::max<uint8_t>(max, params.quantized_activation_min); in MaxPool() 286 max = std::min<uint8_t>(max, params.quantized_activation_max); in MaxPool() [all …]
|
A D | log_softmax.h | 41 float max = std::numeric_limits<float>::lowest(); in LogSoftmax() local 43 max = std::max(max, input_data[i * depth + c]); in LogSoftmax() 49 sum += std::exp(input_data[i * depth + c] - max); in LogSoftmax() 55 output_data[i * depth + c] = input_data[i * depth + c] - max - log_sum; in LogSoftmax() 92 max_in_row = std::max(max_in_row, input_data[i * depth + c]); in LogSoftmax() 123 std::max(static_cast<int32_t>( in LogSoftmax() 143 std::max(std::min(unsat_output, static_cast<int32_t>(255)), in LogSoftmax() 168 static constexpr T kMaxT8 = std::numeric_limits<T>::max(); in LogSoftmaxQuantized() 183 std::max(max_in_row, input_data[outer_index * depth + inner_index]); in LogSoftmaxQuantized() 212 std::max(static_cast<int32_t>(diff_min - 1), in LogSoftmaxQuantized() [all …]
|
A D | non_max_suppression.h | 39 const float box_i_y_max = std::max<float>(box_i.y1, box_i.y2); in ComputeIntersectionOverUnion() 41 const float box_i_x_max = std::max<float>(box_i.x1, box_i.x2); in ComputeIntersectionOverUnion() 43 const float box_j_y_max = std::max<float>(box_j.y1, box_j.y2); in ComputeIntersectionOverUnion() 45 const float box_j_x_max = std::max<float>(box_j.x1, box_j.x2); in ComputeIntersectionOverUnion() 54 const float intersection_ymin = std::max<float>(box_i_y_min, box_j_y_min); in ComputeIntersectionOverUnion() 55 const float intersection_xmin = std::max<float>(box_i_x_min, box_j_x_min); in ComputeIntersectionOverUnion() 57 std::max<float>(intersection_ymax - intersection_ymin, 0.0) * in ComputeIntersectionOverUnion() 58 std::max<float>(intersection_xmax - intersection_xmin, 0.0); in ComputeIntersectionOverUnion()
|
/AliOS-Things-master/components/SDL2/src/image/external/zlib-1.2.11/ |
A D | inftrees.c | 42 unsigned min, max; /* minimum and maximum code lengths */ local 114 for (max = MAXBITS; max >= 1; max--) 115 if (count[max] != 0) break; 116 if (root > max) root = max; 117 if (max == 0) { /* no symbols to code at all */ 126 for (min = 1; min < max; min++) 137 if (left > 0 && (type == CODES || max != 1)) 253 if (len == max) break; 269 while (curr + drop < max) {
|
/AliOS-Things-master/solutions/miniapp_agent_demo/ |
A D | README.md | 30 …/imgextra/i4/O1CN01XxD6Xo217CB3FZnEU_!!6000000006937-2-tps-746-497.png" style="max-width:800px;" /> 60 …imgextra/i3/O1CN01i0HONM1TeS0OHtHk0_!!6000000002407-1-tps-626-1280.gif" style="max-width:800px;" /> 68 …mgextra/i1/O1CN01dvGFo01DIR79OnB1b_!!6000000000193-2-tps-4096-2560.png" style="max-width:800px;" /> 76 …mgextra/i4/O1CN01GcyU4T1vGutcRUrX6_!!6000000006146-2-tps-4096-2560.png" style="max-width:800px;" /> 83 …mgextra/i2/O1CN01sOZ4lC26UA7drDcmQ_!!6000000007664-2-tps-4096-2560.png" style="max-width:800px;" /> 91 …mgextra/i4/O1CN01DrQXDt1eS33GNbyf1_!!6000000003869-2-tps-4096-2560.png" style="max-width:800px;" /> 97 …imgextra/i1/O1CN01brO1OO1zOwINrkWec_!!6000000006705-1-tps-626-1280.gif" style="max-width:800px;" /> 114 …mgextra/i1/O1CN01rWDZV31wO4hQAMVpg_!!6000000006297-2-tps-4096-2560.png" style="max-width:800px;" /> 120 …mgextra/i2/O1CN01f9csYR25ePMtZTaZD_!!6000000007551-2-tps-4096-2560.png" style="max-width:800px;" /> 125 …mgextra/i1/O1CN01rWDZV31wO4hQAMVpg_!!6000000006297-2-tps-4096-2560.png" style="max-width:800px;" /> [all …]
|
/AliOS-Things-master/components/py_engine/external/unzip/src/ |
A D | inftrees.c | 42 unsigned min, max; /* minimum and maximum code lengths */ local 114 for (max = MAXBITS; max >= 1; max--) 115 if (count[max] != 0) break; 116 if (root > max) root = max; 117 if (max == 0) { /* no symbols to code at all */ 126 for (min = 1; min < max; min++) 137 if (left > 0 && (type == CODES || max != 1)) 255 if (len == max) break; 271 while (curr + drop < max) {
|
/AliOS-Things-master/components/ai_agent/src/engine/tflite-micro/tensorflow/lite/kernels/internal/ |
A D | test_util.h | 40 int UniformRandomInt(int min, int max); 43 float UniformRandomFloat(float min, float max); 60 void FillRandom(std::vector<float>* vec, float min, float max); 64 typename std::vector<T>::iterator end_it, T min, T max) { in FillRandom() argument 68 std::uniform_int_distribution<rand_type> dist(min, max); in FillRandom() 76 void FillRandom(std::vector<T>* vec, T min, T max) { in FillRandom() argument 77 return FillRandom(std::begin(*vec), std::end(*vec), min, max); in FillRandom() 83 FillRandom(vec, std::numeric_limits<T>::min(), std::numeric_limits<T>::max()); in FillRandom() 98 FillRandom(left_it, right_it, middle_min, std::numeric_limits<T>::max()); in FillRandomSkyscraper()
|
/AliOS-Things-master/components/ai_agent/src/engine/tflite-micro/tensorflow/lite/micro/ |
A D | micro_utils.h | 38 std::max(static_cast<int32_t>(std::numeric_limits<T>::min()), result); in FloatToQuantizedType() 40 std::min(static_cast<int32_t>(std::numeric_limits<T>::max()), result); in FloatToQuantizedType() 48 std::max(static_cast<int32_t>(std::numeric_limits<T>::min() + 1), result); in FloatToSymmetricQuantizedType() 50 std::min(static_cast<int32_t>(std::numeric_limits<T>::max()), result); in FloatToSymmetricQuantizedType() 108 float max = 0; in SymmetricQuantizeCalculateScales() local 111 max = fmaxf(max, values[i]); in SymmetricQuantizeCalculateScales() 113 *scale = fmaxf(std::abs(min), std::abs(max)) / std::numeric_limits<T>::max(); in SymmetricQuantizeCalculateScales() 118 quantized_value = fminf(std::numeric_limits<T>::max(), quantized_value); in SymmetricQuantizeCalculateScales()
|
A D | micro_utils.cc | 59 float max = 0; in SignedSymmetricPerChannelQuantize() local 64 max = fmaxf(max, values[idx]); in SignedSymmetricPerChannelQuantize() 67 fmaxf(fabs(min), fabs(max)) / std::numeric_limits<int8_t>::max(); in SignedSymmetricPerChannelQuantize() 74 fminf(std::numeric_limits<int8_t>::max(), in SignedSymmetricPerChannelQuantize()
|
/AliOS-Things-master/documentation/debug-tools/ |
A D | SmartTrace.md | 22 …/imgextra/i1/O1CN01DtrUcH24Hg6euUzst_!!6000000007366-2-tps-803-743.png" style="max-width:800px;" /> 30 …imgextra/i3/O1CN01gAGgUk1jH7h3UUoWo_!!6000000004522-2-tps-1915-869.png" style="max-width:800px;" /> 37 …/imgextra/i3/O1CN011my9nB1TrjV7Sna8K_!!6000000002436-2-tps-889-766.png" style="max-width:800px;" /> 44 …mgextra/i2/O1CN01S5IxsH1j2vPkf1NNd_!!6000000004491-2-tps-1908-1007.png" style="max-width:800px;" /> 51 …mgextra/i2/O1CN01zMZ78m1uBagRLYMbB_!!6000000005999-2-tps-1920-1041.png" style="max-width:800px;" /> 59 …mgextra/i3/O1CN01gSpkvT1iCiGUOrYkl_!!6000000004377-2-tps-1920-1041.png" style="max-width:800px;" /> 69 …mgextra/i1/O1CN01HNx9NR1Sru1yNyhe3_!!6000000002301-2-tps-1890-1004.png" style="max-width:800px;" /> 77 …/imgextra/i2/O1CN01W15ku71mi5racVdbJ_!!6000000004987-2-tps-982-914.png" style="max-width:800px;" /> 107 …/imgextra/i1/O1CN01mOjXgc1lIcDHRtGY3_!!6000000004796-2-tps-573-201.png" style="max-width:800px;" /> 117 …/imgextra/i1/O1CN018P0Z6S297D8GD2iV1_!!6000000008020-2-tps-719-693.png" style="max-width:800px;" /> [all …]
|
/AliOS-Things-master/solutions/eduk1_demo/ |
A D | README.md | 20 …mgextra/i1/O1CN01sBXp3g1pDM7IQjmpj_!!6000000005326-2-tps-2020-1320.png" style="max-width:800px;" /> 41 …mgextra/i4/O1CN016xnKR61uj1a2Je2rT_!!6000000006072-2-tps-3678-1170.png" style="max-width:800px;" /> 73 …imgextra/i3/O1CN01MhNElU1M8fCNezy7v_!!6000000001390-2-tps-1200-800.png" style="max-width:800px;" /> 77 …imgextra/i3/O1CN01MhNElU1M8fCNezy7v_!!6000000001390-2-tps-1200-800.png" style="max-width:800px;" /> 92 …imgextra/i4/O1CN01qZ6L7Z1SxrAPcv9WY_!!6000000002314-2-tps-1200-800.png" style="max-width:800px;" /> 107 …imgextra/i3/O1CN019hMi8z1duc8ShPnTo_!!6000000003796-1-tps-1200-800.gif" style="max-width:800px;" /> 122 …imgextra/i2/O1CN019OP4kF22I19ZudgVF_!!6000000007096-1-tps-1200-800.gif" style="max-width:800px;" /> 137 …imgextra/i4/O1CN01yRJYEH1qpCSZuKNk3_!!6000000005544-1-tps-1200-800.gif" style="max-width:800px;" /> 152 …imgextra/i4/O1CN01g7IwSJ1yinqwEItqK_!!6000000006613-1-tps-1200-800.gif" style="max-width:800px;" /> 168 …imgextra/i1/O1CN016aH1g11EdnC4Gu5Og_!!6000000000375-1-tps-1200-800.gif" style="max-width:800px;" /> [all …]
|
/AliOS-Things-master/components/freetype/src/pfr/ |
A D | pfrcmap.c | 71 FT_UInt max = cmap->num_chars; in pfr_cmap_char_index() local 74 while ( min < max ) in pfr_cmap_char_index() 80 mid = min + ( max - min ) / 2; in pfr_cmap_char_index() 89 max = mid; in pfr_cmap_char_index() 106 FT_UInt max = cmap->num_chars; in pfr_cmap_char_next() local 111 while ( min < max ) in pfr_cmap_char_next() 113 mid = min + ( ( max - min ) >> 1 ); in pfr_cmap_char_next() 132 max = mid; in pfr_cmap_char_next()
|
/AliOS-Things-master/components/SDL2/src/image/external/zlib-1.2.11/contrib/infback9/ |
A D | inftree9.c | 42 unsigned min, max; /* minimum and maximum code lengths */ local 116 for (max = MAXBITS; max >= 1; max--) 117 if (count[max] != 0) break; 118 if (root > max) root = max; 119 if (max == 0) return -1; /* no codes! */ 131 if (left > 0 && (type == CODES || max != 1)) 248 if (len == max) break; 264 while (curr + drop < max) {
|
/AliOS-Things-master/solutions/rfid_demo/ |
A D | README.md | 16 …/imgextra/i2/O1CN012j7oiV1PpfERjfefk_!!6000000001890-2-tps-349-401.png" style="max-width:800px;" /> 20 …imgextra/i4/O1CN01duVVEO1J7LCrbrpHm_!!6000000000981-2-tps-1704-860.png" style="max-width:800px;" /> 28 …/imgextra/i1/O1CN01dQNJ2x24FO6j8gfXW_!!6000000007361-2-tps-462-280.png" style="max-width:800px;" /> 36 …/imgextra/i4/O1CN01XxD6Xo217CB3FZnEU_!!6000000006937-2-tps-746-497.png" style="max-width:800px;" /> 40 …/imgextra/i4/O1CN015zTuPa1ipduhDVCPY_!!6000000004462-2-tps-720-364.png" style="max-width:800px;" /> 88 …mgextra/i1/O1CN01rvpScH1kBSOWmRDhj_!!6000000004645-2-tps-1066-1422.png" style="max-width:800px;" /> 106 …mgextra/i4/O1CN01n9cATi1c9brz4RRVl_!!6000000003558-0-tps-2048-1536.jpg" style="max-width:800px;" /> 115 …imgextra/i3/O1CN01DAuLhk1fEb1qOeI7n_!!6000000003975-2-tps-976-1406.png" style="max-width:800px;" /> 123 …imgextra/i4/O1CN01ZGA4bi1T1yjDtlKTV_!!6000000002323-2-tps-940-1370.png" style="max-width:800px;" /> 127 …imgextra/i1/O1CN01T8sQFc1Wggmc5YR0C_!!6000000002818-0-tps-1513-830.jpg" style="max-width:800px;" /> [all …]
|
/AliOS-Things-master/components/a2sa/internal/driver/core/ |
A D | control.h | 38 .rshift = right, .max = smax, .platform_max = smax, \ 41 #define AOS_SINGLE_VALUE(reg, shift, max, invert, autodisable) \ argument 42 AOS_DOUBLE_VALUE(reg, shift, shift, max, invert, autodisable) 44 #define SOC_SINGLE_EXT(sname, reg, shift, max, invert, handler_get, handler_put) \ argument 50 .private_value = AOS_SINGLE_VALUE(reg, shift, max, invert, 0) \ 53 #define SOC_DOUBLE_EXT(sname, reg, left, right, max, invert, handler_get, handler_put) \ argument 59 .private_value = AOS_DOUBLE_VALUE(reg, left, right, max, invert, 0) \ 96 long max; /* R: max value */ member 101 long long max; /* R: max value */ member 136 int min, max, platform_max; member
|
/AliOS-Things-master/components/freetype/src/base/ |
A D | ftbbox.c | 109 FT_Pos* max ) in BBox_Conic_Check() argument 122 if ( y2 > *max ) in BBox_Conic_Check() 123 *max = y2; in BBox_Conic_Check() 214 while ( q2 > max || q3 > max ) in update_cubic_max() 243 max = q1; in update_cubic_max() 248 max = q4; in update_cubic_max() 253 return max; in update_cubic_max() 292 nmax = *max << shift; in BBox_Cubic_Check() 301 nmax = *max >> -shift; in BBox_Cubic_Check() 322 if ( nmax > *max ) in BBox_Cubic_Check() [all …]
|
/AliOS-Things-master/documentation/aos-studio/ |
A D | create_project.md | 10 …/imgextra/i2/O1CN01xmJW0b25z1BVejS40_!!6000000007596-2-tps-796-275.png" style="max-width:800px;" /> 20 …imgextra/i1/O1CN01UyKaz91bYyBgPFSzL_!!6000000003478-2-tps-1060-576.png" style="max-width:800px;" /> 24 …imgextra/i2/O1CN01eq0SHQ1oskIBE9WuD_!!6000000005281-2-tps-1060-254.png" style="max-width:800px;" /> 28 …imgextra/i3/O1CN01unfkTF1bFjYKNXYMp_!!6000000003436-2-tps-1064-186.png" style="max-width:800px;" /> 32 …imgextra/i1/O1CN01bcjwNW1QGECspTNCo_!!6000000001948-2-tps-1072-200.png" style="max-width:800px;" /> 36 …/imgextra/i1/O1CN01w1MUey1dTaleqlgDB_!!6000000003737-2-tps-686-420.png" style="max-width:800px;" />
|
/AliOS-Things-master/components/ai_agent/src/engine/tflite-micro/third_party/cmsis/CMSIS/NN/Source/SoftmaxFunctions/ |
A D | arm_softmax_s8.c | 103 int8_t max = ACT_MIN; in arm_softmax_s8() local 111 max = vmaxvq_p_s8(max, ip, p); in arm_softmax_s8() 122 ip = vsubq_n_s32(ip, max); in arm_softmax_s8() 143 const int32_t diff = input[tail_idx + i] - max; in arm_softmax_s8() 160 ip = vsubq_n_s32(ip, max); in arm_softmax_s8() 191 int32_t diff = input[tail_idx + i] - max; in arm_softmax_s8() 216 int8_t max = *input; in arm_softmax_s8() 220 max = MAX(max, input[col]); in arm_softmax_s8() 228 diff = input[col] - max; in arm_softmax_s8() 241 diff = input[col] - max; in arm_softmax_s8()
|
/AliOS-Things-master/components/ai_agent/src/engine/tflite-micro/tensorflow/lite/micro/tools/make/downloads/cmsis/CMSIS/NN/Source/SoftmaxFunctions/ |
A D | arm_softmax_s8.c | 103 int8_t max = ACT_MIN; in arm_softmax_s8() local 111 max = vmaxvq_p_s8(max, ip, p); in arm_softmax_s8() 122 ip = vsubq_n_s32(ip, max); in arm_softmax_s8() 143 const int32_t diff = input[tail_idx + i] - max; in arm_softmax_s8() 160 ip = vsubq_n_s32(ip, max); in arm_softmax_s8() 191 int32_t diff = input[tail_idx + i] - max; in arm_softmax_s8() 216 int8_t max = *input; in arm_softmax_s8() 220 max = MAX(max, input[col]); in arm_softmax_s8() 228 diff = input[col] - max; in arm_softmax_s8() 241 diff = input[col] - max; in arm_softmax_s8()
|
/AliOS-Things-master/components/SDL2/test/ |
A D | testautomation_sdltest.c | 95 Sint64 min, max; in sdltest_randomNumber() local 104 max = (1 << 7) - 1; in sdltest_randomNumber() 115 max = (1 << 15) - 1; in sdltest_randomNumber() 126 max = ((Sint64)1 << 31) - 1; in sdltest_randomNumber() 1047 Sint32 min, max; in sdltest_randomIntegerInRange() local 1059 max = min + (Sint32)SDLTest_RandomUint8() + 2; in sdltest_randomIntegerInRange() 1066 max = min + 1; in sdltest_randomIntegerInRange() 1073 max = min; in sdltest_randomIntegerInRange() 1080 max = 0; in sdltest_randomIntegerInRange() 1101 max = long_max; in sdltest_randomIntegerInRange() [all …]
|
/AliOS-Things-master/solutions/flower_demo/ |
A D | README.md | 11 …mgextra/i2/O1CN01uTFPGy1WVEslbcHQ6_!!6000000002793-1-tps-1440-1080.gif" style="max-width:800px;" /> 20 …/imgextra/i4/O1CN011t59YF25YubwEfz98_!!6000000007539-2-tps-443-443.png" style="max-width:800px;" /> 25 …/imgextra/i2/O1CN015hi7UZ1WC0FTTOZBs_!!6000000002751-2-tps-586-886.png" style="max-width:800px;" /> 32 …imgextra/i1/O1CN01G4JbCl1qcplUe5ynk_!!6000000005517-2-tps-1604-872.png" style="max-width:800px;" /> 40 …imgextra/i3/O1CN017lZ9eZ1cIlnMoyjU3_!!6000000003578-2-tps-1398-352.png" style="max-width:800px;" /> 48 …imgextra/i3/O1CN01etKzgU1UNKoYVqtxo_!!6000000002505-2-tps-1592-508.png" style="max-width:800px;" /> 61 …imgextra/i1/O1CN01BVYeO41aQtaXWn8Di_!!6000000003325-2-tps-1564-850.png" style="max-width:800px;" /> 67 …imgextra/i2/O1CN01jH1ELf1Z8Hspm5NNC_!!6000000003149-2-tps-1574-730.png" style="max-width:800px;" /> 100 …imgextra/i3/O1CN01u0AGpn1uEnRRq2WAu_!!6000000006006-2-tps-1308-490.png" style="max-width:800px;" /> 106 …imgextra/i2/O1CN01kDopR91FsHL3jRQOT_!!6000000000542-2-tps-1328-792.png" style="max-width:800px;" /> [all …]
|