xmos-ai-tools 1.3.2.dev90__py3-none-macosx_10_15_universal2.whl → 1.3.2.dev108__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/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-1.3.2.dev90.data → xmos_ai_tools-1.3.2.dev108.data}/data/bin/xcore-opt +0 -0
- {xmos_ai_tools-1.3.2.dev90.dist-info → xmos_ai_tools-1.3.2.dev108.dist-info}/METADATA +2 -2
- {xmos_ai_tools-1.3.2.dev90.dist-info → xmos_ai_tools-1.3.2.dev108.dist-info}/RECORD +9 -9
- {xmos_ai_tools-1.3.2.dev90.dist-info → xmos_ai_tools-1.3.2.dev108.dist-info}/WHEEL +0 -0
- {xmos_ai_tools-1.3.2.dev90.dist-info → xmos_ai_tools-1.3.2.dev108.dist-info}/top_level.txt +0 -0
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
|
@@ -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.dev108
|
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/ded91c91e745c004e545e25b7d5f1b5cd6b966dd/README.md) for documentation on using xmos-ai-tools to deploy AI models on xcore.
|
@@ -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=sgtO2Cb3dJ3Dps2c0Ly3ZQjkzmfALm6GdyQcTo53w4M,2431256
|
382
|
+
xmos_ai_tools/runtime/lib/libxtflitemicro.a,sha256=lvrVMYJaYvmS9p5q7gM4NExtleEPkKO-563f4Xia8G8,70440318
|
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=
|
387
|
+
xmos_ai_tools/xinterpreters/host_interpreter.py,sha256=rqoTcSWK7O9eboMsg0o2UYWapWTE5xiki7XTJZ_JbwQ,25664
|
388
388
|
xmos_ai_tools/xinterpreters/libs/macos/xtflm_python.1.0.1.dylib,sha256=uwA1dNlFvRyw-lyg7msQ2P_vi6syL4OGWWZj8pa3fWE,2321592
|
389
389
|
xmos_ai_tools/xinterpreters/libs/macos/xtflm_python.dylib,sha256=uwA1dNlFvRyw-lyg7msQ2P_vi6syL4OGWWZj8pa3fWE,2321592
|
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.
|
390
|
+
xmos_ai_tools-1.3.2.dev108.data/data/bin/xcore-opt,sha256=lJwRhCr3bwJVK_KXrVEDVJJ0YWt44SMkiSMyOqO4EBE,283342392
|
391
|
+
xmos_ai_tools-1.3.2.dev108.dist-info/METADATA,sha256=VGPXQn2iVk0xtn3nQX4zcb5LNLYZrX-aWpt72YRRerc,1342
|
392
|
+
xmos_ai_tools-1.3.2.dev108.dist-info/WHEEL,sha256=cblCMhPsi-5aS-1Fj5LRCkSbCUQwa2nrUvkiKN0vRpQ,113
|
393
|
+
xmos_ai_tools-1.3.2.dev108.dist-info/top_level.txt,sha256=YWegea73ll3tMlRWRdHJemUy2VOuEYDdOIaffxu_eF0,14
|
394
|
+
xmos_ai_tools-1.3.2.dev108.dist-info/RECORD,,
|
File without changes
|
File without changes
|