xmos-ai-tools 1.3.2.dev90__py3-none-macosx_10_15_universal2.whl → 1.3.2.dev114__py3-none-macosx_10_15_universal2.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- xmos_ai_tools/runtime/include/lib_nn/api/nn_layers.h +4 -0
- xmos_ai_tools/runtime/include/lib_tflite_micro/src/tflite-xcore-kernels/xcore_ops.h +2 -0
- xmos_ai_tools/runtime/lib/libhost_xtflitemicro.a +0 -0
- xmos_ai_tools/runtime/lib/libxtflitemicro.a +0 -0
- xmos_ai_tools/xformer/__init__.py +20 -16
- xmos_ai_tools/xinterpreters/host_interpreter.py +0 -1
- xmos_ai_tools/xinterpreters/libs/macos/xtflm_python.1.0.1.dylib +0 -0
- xmos_ai_tools/xinterpreters/libs/macos/xtflm_python.dylib +0 -0
- {xmos_ai_tools-1.3.2.dev90.data → xmos_ai_tools-1.3.2.dev114.data}/data/bin/xcore-opt +0 -0
- {xmos_ai_tools-1.3.2.dev90.dist-info → xmos_ai_tools-1.3.2.dev114.dist-info}/METADATA +2 -2
- {xmos_ai_tools-1.3.2.dev90.dist-info → xmos_ai_tools-1.3.2.dev114.dist-info}/RECORD +13 -13
- {xmos_ai_tools-1.3.2.dev90.dist-info → xmos_ai_tools-1.3.2.dev114.dist-info}/WHEEL +0 -0
- {xmos_ai_tools-1.3.2.dev90.dist-info → xmos_ai_tools-1.3.2.dev114.dist-info}/top_level.txt +0 -0
@@ -300,4 +300,8 @@ void mean_int8(const int8_t *input, int8_t *output, const int start_dim_size,
|
|
300
300
|
const float in_zero_point, const float out_zero_point,
|
301
301
|
const float scale_mul);
|
302
302
|
|
303
|
+
void mean_int16(const int16_t *input, int16_t *output, const int start_dim_size,
|
304
|
+
const int mean_dim_size, const int end_dim_size,
|
305
|
+
const float scale_mul);
|
306
|
+
|
303
307
|
#endif // LAYERS_H_
|
@@ -32,6 +32,7 @@ constexpr const char *XC_concat_OpCode = "XC_concat";
|
|
32
32
|
constexpr const char *XC_pad_3_to_4_OpCode = "XC_pad_3_to_4";
|
33
33
|
constexpr const char *XC_mul_OpCode = "XC_mul";
|
34
34
|
constexpr const char *XC_mean_OpCode = "XC_mean";
|
35
|
+
constexpr const char *XC_meani16_OpCode = "XC_meani16";
|
35
36
|
constexpr const char *XC_expand_8_to_16_OpCode = "XC_expand_8_to_16";
|
36
37
|
// Binarized ops
|
37
38
|
constexpr const char *XC_bsign_8_OpCode = "XC_bsign_8";
|
@@ -59,6 +60,7 @@ TFLMRegistration *Register_XC_concat();
|
|
59
60
|
TFLMRegistration *Register_XC_pad_3_to_4();
|
60
61
|
TFLMRegistration *Register_XC_mul();
|
61
62
|
TFLMRegistration *Register_XC_mean();
|
63
|
+
TFLMRegistration *Register_XC_meani16();
|
62
64
|
TFLMRegistration *Register_XC_expand_8_to_16();
|
63
65
|
// Binarized ops
|
64
66
|
TFLMRegistration *Register_XC_bsign_8();
|
Binary file
|
Binary file
|
@@ -5,7 +5,8 @@ from typing import Union, List, Optional
|
|
5
5
|
from .flash import generate_flash
|
6
6
|
import re
|
7
7
|
|
8
|
-
|
8
|
+
__compilation_stdout = ""
|
9
|
+
__compilation_stderr = ""
|
9
10
|
__arena_size = 0
|
10
11
|
|
11
12
|
|
@@ -29,20 +30,22 @@ def convert(
|
|
29
30
|
|
30
31
|
args.append(str(filename))
|
31
32
|
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
33
|
+
try:
|
34
|
+
process_call: subprocess.CompletedProcess = subprocess.run(
|
35
|
+
[arg for arg in args],
|
36
|
+
check=True, text=True, capture_output=True,
|
37
|
+
)
|
38
|
+
global __compilation_stdout, __compilation_stderr, __arena_size
|
39
|
+
__compilation_stdout = process_call.stdout
|
40
|
+
__compilation_stderr = process_call.stderr
|
41
|
+
size_str = re.sub("((.|\n|\r)*)Tensor arena size :", "", __compilation_stdout)
|
42
|
+
size_str = re.sub("(\n|\r)((.|\n|\r)*)", "", size_str)
|
43
|
+
__arena_size = int(size_str.strip())
|
44
|
+
return process_call.returncode
|
45
|
+
except subprocess.CalledProcessError as e:
|
46
|
+
print(e)
|
47
|
+
print("Return code:", e.returncode)
|
48
|
+
print("Error output:", e.stderr)
|
46
49
|
|
47
50
|
|
48
51
|
def tensor_arena_size() -> int:
|
@@ -50,7 +53,8 @@ def tensor_arena_size() -> int:
|
|
50
53
|
|
51
54
|
|
52
55
|
def print_optimization_report():
|
53
|
-
print(
|
56
|
+
print(__compilation_stderr)
|
57
|
+
print(__compilation_stdout)
|
54
58
|
|
55
59
|
|
56
60
|
def print_help(show_hidden: Optional[bool] = False) -> int:
|
Binary file
|
Binary file
|
Binary file
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: xmos_ai_tools
|
3
|
-
Version: 1.3.2.
|
3
|
+
Version: 1.3.2.dev114
|
4
4
|
Summary: XMOS AI Tools
|
5
5
|
Home-page: https://github.com/xmos/ai_tools
|
6
6
|
Author: XMOS
|
@@ -30,4 +30,4 @@ Requires-Dist: tflite>=2.4.0
|
|
30
30
|
Documentation
|
31
31
|
-------------
|
32
32
|
|
33
|
-
Click [here](https://github.com/xmos/ai_tools/blob/
|
33
|
+
Click [here](https://github.com/xmos/ai_tools/blob/f60ef11c52910b2184ad0b01460bb6d01f4f22a9/README.md) for documentation on using xmos-ai-tools to deploy AI models on xcore.
|
@@ -49,7 +49,7 @@ xmos_ai_tools/runtime/include/lib_nn/api/nn_bin_types.h,sha256=DTFX2ecfzwl-_tHlq
|
|
49
49
|
xmos_ai_tools/runtime/include/lib_nn/api/nn_config.h,sha256=KFoA5zyOTTHi6x-qDuIWkF8wAz4Gc4BdOBgUzOArOD0,11558
|
50
50
|
xmos_ai_tools/runtime/include/lib_nn/api/nn_conv2d_structs.h,sha256=Kfyq3bD1aLcSnWTB_cijU_D5ThGol5utJ1k-WsjqeMY,2268
|
51
51
|
xmos_ai_tools/runtime/include/lib_nn/api/nn_image.h,sha256=gz7NyxmZACZiDED0wT7px2qjEEMcUwfa5TjeOUmYzL4,514
|
52
|
-
xmos_ai_tools/runtime/include/lib_nn/api/nn_layers.h,sha256=
|
52
|
+
xmos_ai_tools/runtime/include/lib_nn/api/nn_layers.h,sha256=6vyEP1UTnuVqxCELCaCZx3L1kgMoVX4r20d4nucNZ0E,10696
|
53
53
|
xmos_ai_tools/runtime/include/lib_nn/api/nn_op_helper.h,sha256=VMnBVEcgH0wtiiV91JjtFRG4xkCI0m7WrikEmU6ulss,3716
|
54
54
|
xmos_ai_tools/runtime/include/lib_nn/api/nn_op_utils.h,sha256=zdCGBeyiHx4-T1hZ4Cjf-QTtXwIyWp4xzuI1dfOjHPA,4948
|
55
55
|
xmos_ai_tools/runtime/include/lib_nn/api/nn_operator.h,sha256=Nj4jiXVHlnFjVBtV7mCGulTzSyNwCIpitz8Ao9kSIsU,337
|
@@ -83,7 +83,7 @@ xmos_ai_tools/runtime/include/lib_tflite_micro/src/tflite-xcore-kernels/conv2d_f
|
|
83
83
|
xmos_ai_tools/runtime/include/lib_tflite_micro/src/tflite-xcore-kernels/xcore_custom_options.h,sha256=lC4Tw1Pxxg3zOXRdqNNtokuU-_cX9TTkYmGLe47-9dQ,630
|
84
84
|
xmos_ai_tools/runtime/include/lib_tflite_micro/src/tflite-xcore-kernels/xcore_error_reporter.h,sha256=_NIzvBYMqlwJexYESP5t5JXpxYTt-ZKq-1AdqAB9-Sc,812
|
85
85
|
xmos_ai_tools/runtime/include/lib_tflite_micro/src/tflite-xcore-kernels/xcore_interpreter.h,sha256=-0BNn65tzxWgNnHLolCYyUYhboL9nN3ksKni3BjH6QU,1801
|
86
|
-
xmos_ai_tools/runtime/include/lib_tflite_micro/src/tflite-xcore-kernels/xcore_ops.h,sha256=
|
86
|
+
xmos_ai_tools/runtime/include/lib_tflite_micro/src/tflite-xcore-kernels/xcore_ops.h,sha256=Sp1bmgrOwQmF6DzorbD5_Aqv1mwoAzP9CfSTp53a-cI,2878
|
87
87
|
xmos_ai_tools/runtime/include/lib_tflite_micro/src/tflite-xcore-kernels/xcore_profiler.h,sha256=Ytqbj4TsbhZrtl42I2dgLyeloLi-1vZwjysIoOkgX9s,1239
|
88
88
|
xmos_ai_tools/runtime/include/lib_tflite_micro/src/tflite-xcore-kernels/xcore_utils.h,sha256=CkxEhyN7i2rmlk_ua18XH1XDV_E4mS2u3Ph48mIhN7M,4747
|
89
89
|
xmos_ai_tools/runtime/include/lib_xud/lib_xud/api/xud.h,sha256=aQNbN6EvpVQm-OkgE_JGn2SeqYE_sKtwWZebu50IwnE,20701
|
@@ -378,17 +378,17 @@ xmos_ai_tools/runtime/include/tensorflow/lite/micro/tools/benchmarking/metrics.h
|
|
378
378
|
xmos_ai_tools/runtime/include/tensorflow/lite/micro/tools/benchmarking/op_resolver.h,sha256=g0dl9tzUqngiINvjBlqDclFqvkC85MC4kbU13vE4OkY,6071
|
379
379
|
xmos_ai_tools/runtime/include/tensorflow/lite/schema/schema_generated.h,sha256=OzGCvswrW_FArm-HxD70BExn0PVtBbHAFPDO6ZZOFtc,1093177
|
380
380
|
xmos_ai_tools/runtime/include/tensorflow/lite/schema/schema_utils.h,sha256=tkHMDPARjIqppYCVInIowwdHxjNP3pfSS9O7vx-ODeo,1333
|
381
|
-
xmos_ai_tools/runtime/lib/libhost_xtflitemicro.a,sha256=
|
382
|
-
xmos_ai_tools/runtime/lib/libxtflitemicro.a,sha256=
|
383
|
-
xmos_ai_tools/xformer/__init__.py,sha256=
|
381
|
+
xmos_ai_tools/runtime/lib/libhost_xtflitemicro.a,sha256=TENbm9fl5yFjqXLI8kLbzP12GpXt2nRYohMfbKzP4Og,2446328
|
382
|
+
xmos_ai_tools/runtime/lib/libxtflitemicro.a,sha256=rN4SPvWgI9MgNuKuqhNosF1159ZNCfFGz033QmfANVU,70898304
|
383
|
+
xmos_ai_tools/xformer/__init__.py,sha256=AxzDorvqJ0FiTc4CLecHPwbMkSuWzXGZT2-u72Aau5s,1904
|
384
384
|
xmos_ai_tools/xformer/flash.py,sha256=MG4coi_Lvvg-oQmw1pomJD8eeOH4gAMjixjBFvO2BCk,6376
|
385
385
|
xmos_ai_tools/xinterpreters/__init__.py,sha256=PFRB9VxOLKaA--j2ZvWGcmesv2C6uNYqJ_kBam68aUI,50
|
386
386
|
xmos_ai_tools/xinterpreters/exceptions.py,sha256=HOjADxHYMPI9mN0YIbWxtw9hSeL2B6XWWwqtGtyJdVs,577
|
387
|
-
xmos_ai_tools/xinterpreters/host_interpreter.py,sha256=
|
388
|
-
xmos_ai_tools/xinterpreters/libs/macos/xtflm_python.1.0.1.dylib,sha256=
|
389
|
-
xmos_ai_tools/xinterpreters/libs/macos/xtflm_python.dylib,sha256=
|
390
|
-
xmos_ai_tools-1.3.2.
|
391
|
-
xmos_ai_tools-1.3.2.
|
392
|
-
xmos_ai_tools-1.3.2.
|
393
|
-
xmos_ai_tools-1.3.2.
|
394
|
-
xmos_ai_tools-1.3.2.
|
387
|
+
xmos_ai_tools/xinterpreters/host_interpreter.py,sha256=rqoTcSWK7O9eboMsg0o2UYWapWTE5xiki7XTJZ_JbwQ,25664
|
388
|
+
xmos_ai_tools/xinterpreters/libs/macos/xtflm_python.1.0.1.dylib,sha256=D3w9gI6jwmZw6pUwVN-wWNCEmFexquuF2txYuMyghYg,2338744
|
389
|
+
xmos_ai_tools/xinterpreters/libs/macos/xtflm_python.dylib,sha256=D3w9gI6jwmZw6pUwVN-wWNCEmFexquuF2txYuMyghYg,2338744
|
390
|
+
xmos_ai_tools-1.3.2.dev114.data/data/bin/xcore-opt,sha256=spwatc-p6m2J_AwvrhSGcYnafm9qYJf6LmZkP_T0c9c,283514744
|
391
|
+
xmos_ai_tools-1.3.2.dev114.dist-info/METADATA,sha256=vYd-7FP2kIKiTF_R0hwdbiltMGH1gwKI6onXtYMZc04,1342
|
392
|
+
xmos_ai_tools-1.3.2.dev114.dist-info/WHEEL,sha256=cblCMhPsi-5aS-1Fj5LRCkSbCUQwa2nrUvkiKN0vRpQ,113
|
393
|
+
xmos_ai_tools-1.3.2.dev114.dist-info/top_level.txt,sha256=YWegea73ll3tMlRWRdHJemUy2VOuEYDdOIaffxu_eF0,14
|
394
|
+
xmos_ai_tools-1.3.2.dev114.dist-info/RECORD,,
|
File without changes
|
File without changes
|