xmos-ai-tools 1.3.2.dev114__py3-none-macosx_10_15_universal2.whl → 1.3.2.dev161__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/flash_server.h +2 -3
- xmos_ai_tools/runtime/include/lib_tflite_micro/api/fast_flash.h +6 -0
- xmos_ai_tools/runtime/include/lib_tflite_micro/api/load_weights.h +64 -0
- xmos_ai_tools/runtime/include/lib_tflite_micro/src/tflite-xcore-kernels/xcore_ops.h +4 -0
- xmos_ai_tools/runtime/lib/libhost_xtflitemicro.a +0 -0
- xmos_ai_tools/runtime/lib/libxtflitemicro.a +0 -0
- 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.dev114.data → xmos_ai_tools-1.3.2.dev161.data}/data/bin/xcore-opt +0 -0
- {xmos_ai_tools-1.3.2.dev114.dist-info → xmos_ai_tools-1.3.2.dev161.dist-info}/METADATA +2 -2
- {xmos_ai_tools-1.3.2.dev114.dist-info → xmos_ai_tools-1.3.2.dev161.dist-info}/RECORD +13 -12
- {xmos_ai_tools-1.3.2.dev114.dist-info → xmos_ai_tools-1.3.2.dev161.dist-info}/WHEEL +1 -1
- {xmos_ai_tools-1.3.2.dev114.dist-info → xmos_ai_tools-1.3.2.dev161.dist-info}/top_level.txt +0 -0
@@ -26,9 +26,8 @@ typedef struct flash {
|
|
26
26
|
typedef enum flash_command {
|
27
27
|
FLASH_READ_PARAMETERS =
|
28
28
|
0, ///< Read a set of parameters. // TODO: share with lib_tflite_micro
|
29
|
-
|
30
|
-
|
31
|
-
2, ///< Read the binary for an operator - future extension
|
29
|
+
FLASH_READ_PARAMETERS_ASYNC = 1, ///< Read parameters asynchronously.
|
30
|
+
FLASH_READ_SYNCHRONIZE = 2, ///< Complete async read.
|
32
31
|
FLASH_READ_XIP =
|
33
32
|
3, ///< Read code to execute-in-place throught L2 cache - future extension
|
34
33
|
FLASH_SERVER_QUIT = 4,
|
@@ -3,6 +3,7 @@
|
|
3
3
|
|
4
4
|
#include <quadflash.h>
|
5
5
|
|
6
|
+
#ifdef __XC__
|
6
7
|
/** Fast flash library.
|
7
8
|
* Before calling any of the functions in here, lib_quad_flash must be initialised as normal by using
|
8
9
|
* fl_connectToDevice(qspi, flash_spec, n_flash_spec).
|
@@ -44,4 +45,9 @@ int fast_flash_init(fl_QSPIPorts &qspi);
|
|
44
45
|
*/
|
45
46
|
void fast_flash_read(fl_QSPIPorts &qspi, unsigned addr, unsigned word_count, unsigned read_data[], chanend ?c_data_out);
|
46
47
|
|
48
|
+
#else
|
49
|
+
int fast_flash_init(fl_QSPIPorts *qspi);
|
50
|
+
void fast_flash_read(fl_QSPIPorts *qspi, unsigned addr, unsigned word_count, unsigned read_data[], chanend_t c_data_out);
|
51
|
+
#endif
|
52
|
+
|
47
53
|
#endif
|
@@ -0,0 +1,64 @@
|
|
1
|
+
#ifndef _load_weights_h_
|
2
|
+
#define _load_weights_h_
|
3
|
+
|
4
|
+
#include <xcore/channel.h>
|
5
|
+
#include "thread_call.h"
|
6
|
+
|
7
|
+
#define LOAD_WEIGHTS_MAX_BLOCKS 2
|
8
|
+
|
9
|
+
/**
|
10
|
+
* Function that connects to a flash or tile-ram server and loads a series of weights.
|
11
|
+
* This function completes when the data is loaded.
|
12
|
+
*
|
13
|
+
* @param c_flash_or_tile channel-end connecting to the flash server
|
14
|
+
*
|
15
|
+
* @param data_ptr array of pointers where the loaded data should be scattered
|
16
|
+
*
|
17
|
+
* @param data_sizes_in_words number of words where for each block
|
18
|
+
*
|
19
|
+
* @param N number of blocks in data_ptr and data_sizes_in_words
|
20
|
+
*
|
21
|
+
* @param external_addr address in flash or tile ram
|
22
|
+
*
|
23
|
+
* @param model_thread_count number of threads available
|
24
|
+
*
|
25
|
+
* @param tif thread_info structure for multithreading
|
26
|
+
*/
|
27
|
+
void load_weights_synchronous(chanend_t c_flash_or_tile, int *data_ptr[], int data_sizes_in_words[],
|
28
|
+
int N, int external_addr, int model_thread_count, thread_info_t *tif);
|
29
|
+
|
30
|
+
/**
|
31
|
+
* Function that connects to a flash server and loads a series of weights.
|
32
|
+
* This function continues loading after the call completes
|
33
|
+
*
|
34
|
+
* @param c_flash_or_tile channel-end connecting to the flash server
|
35
|
+
*
|
36
|
+
* @param data_ptr array of pointers where the loaded data should be scattered
|
37
|
+
*
|
38
|
+
* @param data_sizes_in_words number of words where for each block
|
39
|
+
*
|
40
|
+
* @param N number of blocks in data_ptr and data_sizes_in_words
|
41
|
+
*
|
42
|
+
* @param external_addr address in flash or tile ram
|
43
|
+
*
|
44
|
+
* @param model_thread_count number of threads available
|
45
|
+
*/
|
46
|
+
void load_weights_asynchronous(chanend_t c_flash_or_tile, int *data_ptr[], int data_sizes_in_words[],
|
47
|
+
int N, int external_addr);
|
48
|
+
|
49
|
+
/**
|
50
|
+
* Function that connects to a flash server and waits for the last outstanding load to complete
|
51
|
+
* Only one asynchronous load should be outstanding at any one time.
|
52
|
+
*
|
53
|
+
* @param c_flash_or_tile channel-end connecting to the flash server
|
54
|
+
*/
|
55
|
+
void load_weights_asynchronous_wait(chanend_t c_flash_or_tile);
|
56
|
+
|
57
|
+
/**
|
58
|
+
* Function that connects to a flash or tile ram server and kills it.
|
59
|
+
*
|
60
|
+
* @param c_flash_or_tile channel-end connecting to the flash server
|
61
|
+
*/
|
62
|
+
void load_weights_quit(chanend_t c_flash_or_tile);
|
63
|
+
|
64
|
+
#endif
|
@@ -23,12 +23,14 @@ constexpr const char *XC_maxpool2d_OpCode = "XC_maxpool2d";
|
|
23
23
|
constexpr const char *XC_softmax_OpCode = "XC_softmax";
|
24
24
|
constexpr const char *XC_batched_softmax_OpCode = "XC_batched_softmax";
|
25
25
|
constexpr const char *XC_ld_weights_OpCode = "XC_ld_weights";
|
26
|
+
constexpr const char *XC_ld_weights_wait_OpCode = "XC_ld_weights_wait";
|
26
27
|
constexpr const char *XC_add_OpCode = "XC_add";
|
27
28
|
constexpr const char *XC_slice_OpCode = "XC_slice";
|
28
29
|
constexpr const char *XC_broadcast_OpCode = "XC_broadcast";
|
29
30
|
constexpr const char *XC_lookup_OpCode = "XC_lookup";
|
30
31
|
constexpr const char *XC_pad_OpCode = "XC_pad";
|
31
32
|
constexpr const char *XC_concat_OpCode = "XC_concat";
|
33
|
+
constexpr const char *XC_transpose_OpCode = "XC_transpose";
|
32
34
|
constexpr const char *XC_pad_3_to_4_OpCode = "XC_pad_3_to_4";
|
33
35
|
constexpr const char *XC_mul_OpCode = "XC_mul";
|
34
36
|
constexpr const char *XC_mean_OpCode = "XC_mean";
|
@@ -51,12 +53,14 @@ TFLMRegistration *Register_XC_maxpool2d();
|
|
51
53
|
TFLMRegistration *Register_XC_softmax();
|
52
54
|
TFLMRegistration *Register_XC_batched_softmax();
|
53
55
|
TFLMRegistration *Register_XC_ld_weights();
|
56
|
+
TFLMRegistration *Register_XC_ld_weights_wait();
|
54
57
|
TFLMRegistration *Register_XC_add();
|
55
58
|
TFLMRegistration *Register_XC_slice();
|
56
59
|
TFLMRegistration *Register_XC_broadcast();
|
57
60
|
TFLMRegistration *Register_XC_lookup();
|
58
61
|
TFLMRegistration *Register_XC_pad();
|
59
62
|
TFLMRegistration *Register_XC_concat();
|
63
|
+
TFLMRegistration *Register_XC_transpose();
|
60
64
|
TFLMRegistration *Register_XC_pad_3_to_4();
|
61
65
|
TFLMRegistration *Register_XC_mul();
|
62
66
|
TFLMRegistration *Register_XC_mean();
|
Binary file
|
Binary file
|
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.dev161
|
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/bc0b994fc32963f32f0b5ef6daf8b4f252fc7968/README.md) for documentation on using xmos-ai-tools to deploy AI models on xcore.
|
@@ -3,7 +3,7 @@ xmos_ai_tools/io_server/__init__.py,sha256=Wr8MHyIxhY80hnvwUH0AsE3BojqIt-AwbYBj-
|
|
3
3
|
xmos_ai_tools/runtime/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
4
4
|
xmos_ai_tools/runtime/buildfiles/aitoolslib.cmake,sha256=7xlnDRNVsEIxu929Nt887drbV104t_Nsye1Rv_FpasA,478
|
5
5
|
xmos_ai_tools/runtime/buildfiles/aitoolslib.make,sha256=D4GFs74BsWTuQT6R_yxXwR4LLH0pzyFiAXnGpe5hntI,253
|
6
|
-
xmos_ai_tools/runtime/include/flash_server.h,sha256=
|
6
|
+
xmos_ai_tools/runtime/include/flash_server.h,sha256=4OQaauv9maSV9pFnxmf6R1LL_TzgnFdXeVPPVWSKPhU,3322
|
7
7
|
xmos_ai_tools/runtime/include/ioserver.h,sha256=gEVBhuVLjwi9c00vHUKDEByibl6GVtSUpl5ePAk5GiE,1045
|
8
8
|
xmos_ai_tools/runtime/include/tile_ram_server.h,sha256=Ad3XKz6sihH3Ot40cMAJmbmRlDo_GVbP51tCovYLm7Y,1546
|
9
9
|
xmos_ai_tools/runtime/include/flatbuffers/allocator.h,sha256=7U_8vFjicWgq8yl-VXtF5JGX5mV7lXhS4aXkHI37XjA,2587
|
@@ -71,8 +71,9 @@ xmos_ai_tools/runtime/include/lib_nn/api/xs3_vpu.h,sha256=xuEpNayaSWeEIoL1--EfQA
|
|
71
71
|
xmos_ai_tools/runtime/include/lib_nn/api/xs3a_registers.h,sha256=5i6Tue1VplRI2VlIes-gaD2BXOKreuUit51OYTsbgFs,139774
|
72
72
|
xmos_ai_tools/runtime/include/lib_nn/src/asm/asm_constants.h,sha256=VB8pk_H4vI4S18xYfPFCOGZoLG6S0FYW5uVfG3u9glU,1018
|
73
73
|
xmos_ai_tools/runtime/include/lib_nn/src/asm/window_op_plan.h,sha256=4I5u3jkbPOXQnj073h24346uJTYApf0A2oegNc0TKjc,704
|
74
|
-
xmos_ai_tools/runtime/include/lib_tflite_micro/api/fast_flash.h,sha256=
|
74
|
+
xmos_ai_tools/runtime/include/lib_tflite_micro/api/fast_flash.h,sha256=ob6pARd2fzBAAvy8oDt8oROHzuL6e8VMoKkxmIxGx-Q,2175
|
75
75
|
xmos_ai_tools/runtime/include/lib_tflite_micro/api/inference_engine.h,sha256=GkmCI01aywc3docA7SV-11pSi89URw1ErxbaSkO9EIs,9303
|
76
|
+
xmos_ai_tools/runtime/include/lib_tflite_micro/api/load_weights.h,sha256=nzQ7lodtCKUpqCKHJ6f15RzaG5T2RO4FmAk_xN2P3js,2309
|
76
77
|
xmos_ai_tools/runtime/include/lib_tflite_micro/api/memory_parallel_transport.h,sha256=P6o4-yWfE3GW_R08zf_kTsg-h4589eAhg9lNvJA7ZCM,1932
|
77
78
|
xmos_ai_tools/runtime/include/lib_tflite_micro/api/version.h,sha256=ImFxGU2PzLZ3TzGiB1V2Ghgd2yh0qWR7UI7ao-MrG6w,318
|
78
79
|
xmos_ai_tools/runtime/include/lib_tflite_micro/api/xcore_config.h,sha256=6KOImWQXzY6FXIepK746QlkQllmCo3eH5FD3Vp1x7PQ,519
|
@@ -83,7 +84,7 @@ xmos_ai_tools/runtime/include/lib_tflite_micro/src/tflite-xcore-kernels/conv2d_f
|
|
83
84
|
xmos_ai_tools/runtime/include/lib_tflite_micro/src/tflite-xcore-kernels/xcore_custom_options.h,sha256=lC4Tw1Pxxg3zOXRdqNNtokuU-_cX9TTkYmGLe47-9dQ,630
|
84
85
|
xmos_ai_tools/runtime/include/lib_tflite_micro/src/tflite-xcore-kernels/xcore_error_reporter.h,sha256=_NIzvBYMqlwJexYESP5t5JXpxYTt-ZKq-1AdqAB9-Sc,812
|
85
86
|
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=
|
87
|
+
xmos_ai_tools/runtime/include/lib_tflite_micro/src/tflite-xcore-kernels/xcore_ops.h,sha256=Pk6Q0xXuZE8EpZJc10Dq1yvPS2X_q34BMKldr6XxS9U,3102
|
87
88
|
xmos_ai_tools/runtime/include/lib_tflite_micro/src/tflite-xcore-kernels/xcore_profiler.h,sha256=Ytqbj4TsbhZrtl42I2dgLyeloLi-1vZwjysIoOkgX9s,1239
|
88
89
|
xmos_ai_tools/runtime/include/lib_tflite_micro/src/tflite-xcore-kernels/xcore_utils.h,sha256=CkxEhyN7i2rmlk_ua18XH1XDV_E4mS2u3Ph48mIhN7M,4747
|
89
90
|
xmos_ai_tools/runtime/include/lib_xud/lib_xud/api/xud.h,sha256=aQNbN6EvpVQm-OkgE_JGn2SeqYE_sKtwWZebu50IwnE,20701
|
@@ -378,17 +379,17 @@ xmos_ai_tools/runtime/include/tensorflow/lite/micro/tools/benchmarking/metrics.h
|
|
378
379
|
xmos_ai_tools/runtime/include/tensorflow/lite/micro/tools/benchmarking/op_resolver.h,sha256=g0dl9tzUqngiINvjBlqDclFqvkC85MC4kbU13vE4OkY,6071
|
379
380
|
xmos_ai_tools/runtime/include/tensorflow/lite/schema/schema_generated.h,sha256=OzGCvswrW_FArm-HxD70BExn0PVtBbHAFPDO6ZZOFtc,1093177
|
380
381
|
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=
|
382
|
+
xmos_ai_tools/runtime/lib/libhost_xtflitemicro.a,sha256=Uu5zBHPlBPGqmsbh1AQRcigV_Nimx8fHFldn_wNP6YM,2456056
|
383
|
+
xmos_ai_tools/runtime/lib/libxtflitemicro.a,sha256=xJNxrRFcR6t2P2a5_VNlbJzifvbEvIoy7AferspsPfU,71406492
|
383
384
|
xmos_ai_tools/xformer/__init__.py,sha256=AxzDorvqJ0FiTc4CLecHPwbMkSuWzXGZT2-u72Aau5s,1904
|
384
385
|
xmos_ai_tools/xformer/flash.py,sha256=MG4coi_Lvvg-oQmw1pomJD8eeOH4gAMjixjBFvO2BCk,6376
|
385
386
|
xmos_ai_tools/xinterpreters/__init__.py,sha256=PFRB9VxOLKaA--j2ZvWGcmesv2C6uNYqJ_kBam68aUI,50
|
386
387
|
xmos_ai_tools/xinterpreters/exceptions.py,sha256=HOjADxHYMPI9mN0YIbWxtw9hSeL2B6XWWwqtGtyJdVs,577
|
387
388
|
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=
|
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.
|
389
|
+
xmos_ai_tools/xinterpreters/libs/macos/xtflm_python.1.0.1.dylib,sha256=StYvfmbui7BuJiJqdEPtEVfFcl5d-dAbDa8OjiXO58A,2356152
|
390
|
+
xmos_ai_tools/xinterpreters/libs/macos/xtflm_python.dylib,sha256=StYvfmbui7BuJiJqdEPtEVfFcl5d-dAbDa8OjiXO58A,2356152
|
391
|
+
xmos_ai_tools-1.3.2.dev161.data/data/bin/xcore-opt,sha256=MzuFWOZg1_cvWRSJqtDYdd7IdGkbQE7yGMEe642uqsU,284075208
|
392
|
+
xmos_ai_tools-1.3.2.dev161.dist-info/METADATA,sha256=tDbkZNPfkFzQz-jOcuWYpyByhCmc8jfA4UnTgKmZXbA,1342
|
393
|
+
xmos_ai_tools-1.3.2.dev161.dist-info/WHEEL,sha256=k5OKkghyzmayaeBChGJITyp38URUgsagFDSxWfgDVa0,112
|
394
|
+
xmos_ai_tools-1.3.2.dev161.dist-info/top_level.txt,sha256=YWegea73ll3tMlRWRdHJemUy2VOuEYDdOIaffxu_eF0,14
|
395
|
+
xmos_ai_tools-1.3.2.dev161.dist-info/RECORD,,
|
File without changes
|