xmos-ai-tools 0.2.2.dev196__py3-none-win_amd64.whl → 0.2.2.dev211__py3-none-win_amd64.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.
@@ -0,0 +1,46 @@
1
+ Metadata-Version: 2.1
2
+ Name: xmos-ai-tools
3
+ Version: 0.2.2.dev211
4
+ Summary: XMOS AI Tools
5
+ Home-page: https://github.com/xmos/ai_tools
6
+ Author: XMOS
7
+ Author-email: support@xmos.com
8
+ License: LICENSE.txt
9
+ Keywords: tensorflow binarized neural networks
10
+ Platform: UNKNOWN
11
+ Classifier: License :: Other/Proprietary License
12
+ Classifier: Development Status :: 4 - Beta
13
+ Classifier: Intended Audience :: Developers
14
+ Classifier: Intended Audience :: Education
15
+ Classifier: Intended Audience :: Science/Research
16
+ Classifier: Programming Language :: Python :: 3
17
+ Classifier: Programming Language :: Python :: 3 :: Only
18
+ Classifier: Programming Language :: Python :: 3.7
19
+ Classifier: Programming Language :: Python :: 3.8
20
+ Classifier: Programming Language :: Python :: 3.9
21
+ Classifier: Topic :: Scientific/Engineering
22
+ Classifier: Topic :: Scientific/Engineering :: Mathematics
23
+ Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
24
+ Classifier: Topic :: Software Development
25
+ Classifier: Topic :: Software Development :: Libraries
26
+ Classifier: Topic :: Software Development :: Libraries :: Python Modules
27
+ Requires-Python: >=3.7
28
+ Description-Content-Type: text/markdown
29
+ Requires-Dist: numpy (<2.0)
30
+ Requires-Dist: tflite (>=2.4.0)
31
+
32
+ Documentation
33
+ -------------
34
+
35
+ - [How to use the graph transformer to run a sample model app on XCORE.AI](https://github.com/xmos/ai_tools/blob/02cdcf6/docs/rst/flow.rst)
36
+ - [Usage from Python to run a sample model on host](https://github.com/xmos/ai_tools/blob/02cdcf6/docs/rst/python.rst)
37
+ - [Graph transformer command-line options](https://github.com/xmos/ai_tools/blob/02cdcf6/docs/rst/options.rst)
38
+ - [Transforming Pytorch models](https://github.com/xmos/ai_tools/blob/02cdcf6/docs/rst/pytorch.rst)
39
+ - [FAQ](https://github.com/xmos/ai_tools/blob/02cdcf6/docs/rst/faq.rst)
40
+ - [Changelog](https://github.com/xmos/ai_tools/blob/02cdcf6/docs/rst/changelog.rst)
41
+ - Advanced topics
42
+ - [Detailed background to deploying on the edge using XCORE.AI](https://github.com/xmos/ai_tools/blob/02cdcf6/docs/rst/xcore-ai-coding.rst)
43
+ - [Building the graph transformer and xmos-ai-tools package]()
44
+
45
+
46
+
@@ -10,9 +10,9 @@ xmos_ai_tools/xinterpreters/device/device_interpreter.py,sha256=Zp_BksHmu4WYcKjo
10
10
  xmos_ai_tools/xinterpreters/host/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
11
11
  xmos_ai_tools/xinterpreters/host/exceptions.py,sha256=L1tPxtLk_sObbOoYNAaFI4cKYa23HxIYc-nkpC-htvw,615
12
12
  xmos_ai_tools/xinterpreters/host/host_interpreter.py,sha256=o6Dj67tvIJmukWGwajgJ3EbJoYX9kUe1IkTU-Py0trY,9173
13
- xmos_ai_tools/xinterpreters/host/libs/windows/xtflm_python.dll,sha256=Zf8Bf3_YfhMt-bB06bemfblF-O9xe3Welgk0yoKp354,371200
14
- xmos_ai_tools-0.2.2.dev196.data/data/Scripts/xcore-opt.exe,sha256=lrEf1-zcgzMGVAY5r9Qb0o7qc2IG87lHxWeCbe0g_tM,56782848
15
- xmos_ai_tools-0.2.2.dev196.dist-info/METADATA,sha256=ighD-eNN7kUgo73AAEzmPHxNmmhJ1vsMMdCk_RifDKc,2952
16
- xmos_ai_tools-0.2.2.dev196.dist-info/WHEEL,sha256=oOatfxF9lem9vgsF-QTj3e-P_rDgLCmqbWx3sLKdyrE,99
17
- xmos_ai_tools-0.2.2.dev196.dist-info/top_level.txt,sha256=YWegea73ll3tMlRWRdHJemUy2VOuEYDdOIaffxu_eF0,14
18
- xmos_ai_tools-0.2.2.dev196.dist-info/RECORD,,
13
+ xmos_ai_tools/xinterpreters/host/libs/windows/xtflm_python.dll,sha256=CdDan4vnnMSXWDWbZyyCsMZ8RyoPeuBi2WFbx_UCfEQ,372736
14
+ xmos_ai_tools-0.2.2.dev211.data/data/Scripts/xcore-opt.exe,sha256=SIjVEKLieBurKVdh3aZh5RlWP0wrxeQfkfcsiTIG6xs,56842240
15
+ xmos_ai_tools-0.2.2.dev211.dist-info/METADATA,sha256=5VzpOENnGTGNjyuNc9xICcvgebQdQ4k7VMdzoRDK6zc,2139
16
+ xmos_ai_tools-0.2.2.dev211.dist-info/WHEEL,sha256=oOatfxF9lem9vgsF-QTj3e-P_rDgLCmqbWx3sLKdyrE,99
17
+ xmos_ai_tools-0.2.2.dev211.dist-info/top_level.txt,sha256=YWegea73ll3tMlRWRdHJemUy2VOuEYDdOIaffxu_eF0,14
18
+ xmos_ai_tools-0.2.2.dev211.dist-info/RECORD,,
@@ -1,95 +0,0 @@
1
- Metadata-Version: 2.1
2
- Name: xmos-ai-tools
3
- Version: 0.2.2.dev196
4
- Summary: XMOS AI Tools
5
- Home-page: https://github.com/xmos/ai_tools
6
- Author: XMOS
7
- Author-email: support@xmos.com
8
- License: LICENSE.txt
9
- Keywords: tensorflow binarized neural networks
10
- Platform: UNKNOWN
11
- Classifier: License :: Other/Proprietary License
12
- Classifier: Development Status :: 4 - Beta
13
- Classifier: Intended Audience :: Developers
14
- Classifier: Intended Audience :: Education
15
- Classifier: Intended Audience :: Science/Research
16
- Classifier: Programming Language :: Python :: 3
17
- Classifier: Programming Language :: Python :: 3 :: Only
18
- Classifier: Programming Language :: Python :: 3.7
19
- Classifier: Programming Language :: Python :: 3.8
20
- Classifier: Programming Language :: Python :: 3.9
21
- Classifier: Topic :: Scientific/Engineering
22
- Classifier: Topic :: Scientific/Engineering :: Mathematics
23
- Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
24
- Classifier: Topic :: Software Development
25
- Classifier: Topic :: Software Development :: Libraries
26
- Classifier: Topic :: Software Development :: Libraries :: Python Modules
27
- Requires-Python: >=3.7
28
- Description-Content-Type: text/markdown
29
- Requires-Dist: numpy (<2.0)
30
- Requires-Dist: tflite (>=2.4.0)
31
-
32
- # XMOS AI Tools
33
-
34
- ## Usage
35
-
36
- ### xformer
37
- ```python
38
- from xmos_ai_tools import xformer as xf
39
-
40
- xf.convert("source model path", "converted model path", params=None)
41
- ```
42
- where `params` is a dictionary of compiler flags and paramters and their values.
43
-
44
- For example:
45
- ```python
46
- from xmos_ai_tools import xformer as xf
47
-
48
- xf.convert("example_int8_model.tflite", "xcore_optimised_int8_model.tflite", {
49
- "mlir-disable-threading": None,
50
- "xcore-reduce-memory": None,
51
- })
52
- ```
53
-
54
- To see all available parameters, call
55
- ```python
56
- from xmos_ai_tools import xformer as xf
57
-
58
- xf.print_help()
59
- ```
60
- This will print all options available to pass to xformer. To see hidden options, run `print_help(show_hidden=True)`
61
-
62
- To create a parameters file and a tflite model suitable for loading to flash, use the "xcore-flash-image-file" option.
63
- ```python
64
- xf.convert("example_int8_model.tflite", "xcore_optimised_int8_flash_model.tflite", {
65
- "xcore-flash-image-file ": "./xcore_params.params",
66
- })
67
- ```
68
-
69
- To use combine these files created by the code above into a .out file use the generate_flash() function
70
- ```python
71
- xf.generate_flash(
72
- output_file="xcore_flash_binary.out",
73
- model_files=["model.tflite", "model2.tflite"],
74
- param_files=["1.params", "2.params"]
75
- )
76
- ```
77
-
78
- ### xinterpreters
79
-
80
- Host Interpreter
81
-
82
- ```python
83
- from xmos_ai_tools.xinterpreters import xcore_tflm_host_interpreter
84
-
85
- ie = xcore_tflm_host_interpreter()
86
- ie.set_model(model_path=xcore_model)
87
- ie.set_tensor(ie.get_input_details()[0]['index'], value=input)
88
- ie.invoke()
89
-
90
- xformer_outputs = []
91
- for i in range(num_of_outputs):
92
- xformer_outputs.append(ie.get_tensor(ie.get_output_details()[i]['index']))
93
- ```
94
-
95
-