xmos-ai-tools 1.3.2.dev82__py3-none-macosx_10_15_universal2.whl → 1.3.2.dev90__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_op_utils.h +3 -0
- xmos_ai_tools/runtime/include/lib_nn/api/quadratic_approximation.h +1 -0
- xmos_ai_tools/runtime/include/lib_nn/api/version.h +2 -2
- xmos_ai_tools/runtime/include/lib_tflite_micro/api/version.h +1 -1
- xmos_ai_tools/runtime/include/lib_tflite_micro/src/tflite-xcore-kernels/xcore_ops.h +2 -0
- xmos_ai_tools/runtime/include/tensorflow/lite/micro/kernels/activations.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.dev82.data → xmos_ai_tools-1.3.2.dev90.data}/data/bin/xcore-opt +0 -0
- {xmos_ai_tools-1.3.2.dev82.dist-info → xmos_ai_tools-1.3.2.dev90.dist-info}/METADATA +2 -2
- {xmos_ai_tools-1.3.2.dev82.dist-info → xmos_ai_tools-1.3.2.dev90.dist-info}/RECORD +15 -16
- xmos_ai_tools/runtime/include/lib_tflite_micro/src/tflite-xcore-kernels/xcore_common.h +0 -19
- {xmos_ai_tools-1.3.2.dev82.dist-info → xmos_ai_tools-1.3.2.dev90.dist-info}/WHEEL +0 -0
- {xmos_ai_tools-1.3.2.dev82.dist-info → xmos_ai_tools-1.3.2.dev90.dist-info}/top_level.txt +0 -0
@@ -8,6 +8,9 @@
|
|
8
8
|
|
9
9
|
#include "xs3_vpu.h"
|
10
10
|
|
11
|
+
C_API int calculateAlignedThreadSplit(int tc, int split_size, int split_start[], int split_end[]);
|
12
|
+
C_API int calculateThreadSplit(int tc, int split_size, int split_start[], int split_end[], int alignment);
|
13
|
+
|
11
14
|
#ifdef __XC__
|
12
15
|
extern "C" {
|
13
16
|
#endif
|
@@ -78,5 +78,6 @@ C_API float approximation_function_tanh(float x);
|
|
78
78
|
C_API float approximation_function_logistics(float x);
|
79
79
|
C_API float approximation_function_elu(float x);
|
80
80
|
C_API float approximation_function_relu(float x);
|
81
|
+
C_API float approximation_function_relu6(float x);
|
81
82
|
|
82
83
|
#endif
|
@@ -1,11 +1,11 @@
|
|
1
|
-
// Copyright (c)
|
1
|
+
// Copyright (c) 2024, XMOS Ltd, All rights reserved
|
2
2
|
#ifndef LIB_NN_VERSION_H_
|
3
3
|
#define LIB_NN_VERSION_H_
|
4
4
|
|
5
5
|
namespace lib_nn {
|
6
6
|
|
7
7
|
static const unsigned major_version = 0;
|
8
|
-
static const unsigned minor_version =
|
8
|
+
static const unsigned minor_version = 4;
|
9
9
|
static const unsigned patch_version = 0;
|
10
10
|
|
11
11
|
} // namespace lib_nn
|
@@ -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_expand_8_to_16_OpCode = "XC_expand_8_to_16";
|
35
36
|
// Binarized ops
|
36
37
|
constexpr const char *XC_bsign_8_OpCode = "XC_bsign_8";
|
37
38
|
|
@@ -58,6 +59,7 @@ TFLMRegistration *Register_XC_concat();
|
|
58
59
|
TFLMRegistration *Register_XC_pad_3_to_4();
|
59
60
|
TFLMRegistration *Register_XC_mul();
|
60
61
|
TFLMRegistration *Register_XC_mean();
|
62
|
+
TFLMRegistration *Register_XC_expand_8_to_16();
|
61
63
|
// Binarized ops
|
62
64
|
TFLMRegistration *Register_XC_bsign_8();
|
63
65
|
|
@@ -55,6 +55,10 @@ void Relu6Quantized(int8_t lower, int8_t upper, const RuntimeShape& input_shape,
|
|
55
55
|
const int8_t* input_data, const RuntimeShape& output_shape,
|
56
56
|
int8_t* output_data);
|
57
57
|
|
58
|
+
void Relu6Quantized(int16_t lower, int16_t upper, const RuntimeShape& input_shape,
|
59
|
+
const int16_t* input_data, const RuntimeShape& output_shape,
|
60
|
+
int16_t* output_data);
|
61
|
+
|
58
62
|
TfLiteStatus ReluPrepare(TfLiteContext* context, TfLiteNode* node);
|
59
63
|
|
60
64
|
TfLiteStatus Relu6Prepare(TfLiteContext* context, TfLiteNode* node);
|
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.dev90
|
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/ba134f5c7797a561414d85cbaa98648f7dee8b9f/README.md) for documentation on using xmos-ai-tools to deploy AI models on xcore.
|
@@ -51,7 +51,7 @@ xmos_ai_tools/runtime/include/lib_nn/api/nn_conv2d_structs.h,sha256=Kfyq3bD1aLcS
|
|
51
51
|
xmos_ai_tools/runtime/include/lib_nn/api/nn_image.h,sha256=gz7NyxmZACZiDED0wT7px2qjEEMcUwfa5TjeOUmYzL4,514
|
52
52
|
xmos_ai_tools/runtime/include/lib_nn/api/nn_layers.h,sha256=FqXpBLsch_IDH1ssRsDO4zt3N8L8v-PbMddbiwY6DS4,10509
|
53
53
|
xmos_ai_tools/runtime/include/lib_nn/api/nn_op_helper.h,sha256=VMnBVEcgH0wtiiV91JjtFRG4xkCI0m7WrikEmU6ulss,3716
|
54
|
-
xmos_ai_tools/runtime/include/lib_nn/api/nn_op_utils.h,sha256=
|
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
|
56
56
|
xmos_ai_tools/runtime/include/lib_nn/api/nn_pooling.h,sha256=DUJNIhtabaMJvP4m46BICDNY2nCSXWKdfE0AUu7VhaY,24456
|
57
57
|
xmos_ai_tools/runtime/include/lib_nn/api/nn_types.h,sha256=Fy88rGmjWcZuJTjSY5Z_VesbW54cqNGbZuxeiJnvd1Q,1986
|
@@ -59,11 +59,11 @@ xmos_ai_tools/runtime/include/lib_nn/api/nn_window_params.h,sha256=NeCS7hhE7tdmc
|
|
59
59
|
xmos_ai_tools/runtime/include/lib_nn/api/output_transform_fn_int16.h,sha256=5Na926JTr8Sg0KfeSt3fapzJQdEX4Gmf_oXM_oGsFvM,2122
|
60
60
|
xmos_ai_tools/runtime/include/lib_nn/api/output_transform_fn_int16_kernel_transform.h,sha256=VdNi6qB11_cYmoIJ6I_TIJw1l9lH-g1dMAqWyRyaouQ,1555
|
61
61
|
xmos_ai_tools/runtime/include/lib_nn/api/output_transform_fn_int16_mappings.h,sha256=claoCFq-IVmD1rDCjMRruum0u1-ADFC-5KE4FPLwLoU,482
|
62
|
-
xmos_ai_tools/runtime/include/lib_nn/api/quadratic_approximation.h,sha256=
|
62
|
+
xmos_ai_tools/runtime/include/lib_nn/api/quadratic_approximation.h,sha256=ZyjSZVrA9Grrwzto06V_GAD90YbghzXFI_LwnyWZuIw,2814
|
63
63
|
xmos_ai_tools/runtime/include/lib_nn/api/quadratic_interpolation.h,sha256=qNguTb1oiAJ_n1_wnSFXD4BEE8PTJqePph6FVnkrwac,816
|
64
64
|
xmos_ai_tools/runtime/include/lib_nn/api/quantize_int16.h,sha256=THKX9qg6ob1Cj4LiRmqlogaEAozc2qEIiENBmRS8rgs,736
|
65
65
|
xmos_ai_tools/runtime/include/lib_nn/api/quantize_int16_transform.h,sha256=Rg2XOvVL1P2UneJ33X9b-ATwaCIiNAyp_ipdAu1SXyk,1029
|
66
|
-
xmos_ai_tools/runtime/include/lib_nn/api/version.h,sha256=
|
66
|
+
xmos_ai_tools/runtime/include/lib_nn/api/version.h,sha256=e6-GRd2_R0vtq6Jps57nM3F0Zt37ZpClL7u3Er0W1ZI,303
|
67
67
|
xmos_ai_tools/runtime/include/lib_nn/api/vpu_memmove_word_aligned.h,sha256=-OgMM0JMG1kIlL6YSiEg-6o6t43t1LUDwAS_inW-r_8,579
|
68
68
|
xmos_ai_tools/runtime/include/lib_nn/api/vpu_memset_256.h,sha256=u71fu0EldAXMiMfQ-il9pN9ZXUkrcSp7kiMcJRnESRE,1967
|
69
69
|
xmos_ai_tools/runtime/include/lib_nn/api/vpu_sim.h,sha256=3S1_2eSaEj2q8nhFuRiCefQhwTeYpfothuFu0fC54_s,3811
|
@@ -74,17 +74,16 @@ xmos_ai_tools/runtime/include/lib_nn/src/asm/window_op_plan.h,sha256=4I5u3jkbPOX
|
|
74
74
|
xmos_ai_tools/runtime/include/lib_tflite_micro/api/fast_flash.h,sha256=IFDYtVg3AodzlFEQw_MFWs2fNQ43aMEXNVwpaG27sko,1984
|
75
75
|
xmos_ai_tools/runtime/include/lib_tflite_micro/api/inference_engine.h,sha256=GkmCI01aywc3docA7SV-11pSi89URw1ErxbaSkO9EIs,9303
|
76
76
|
xmos_ai_tools/runtime/include/lib_tflite_micro/api/memory_parallel_transport.h,sha256=P6o4-yWfE3GW_R08zf_kTsg-h4589eAhg9lNvJA7ZCM,1932
|
77
|
-
xmos_ai_tools/runtime/include/lib_tflite_micro/api/version.h,sha256=
|
77
|
+
xmos_ai_tools/runtime/include/lib_tflite_micro/api/version.h,sha256=ImFxGU2PzLZ3TzGiB1V2Ghgd2yh0qWR7UI7ao-MrG6w,318
|
78
78
|
xmos_ai_tools/runtime/include/lib_tflite_micro/api/xcore_config.h,sha256=6KOImWQXzY6FXIepK746QlkQllmCo3eH5FD3Vp1x7PQ,519
|
79
79
|
xmos_ai_tools/runtime/include/lib_tflite_micro/api/xcore_device_memory.h,sha256=bLWcRDNrzClLh8_eR3XRRz3sA2pEAzzxGLDoPTsNp8A,1917
|
80
80
|
xmos_ai_tools/runtime/include/lib_tflite_micro/api/xcore_shared_config.h,sha256=qv3cxHGUHDxdR0xlfdd0qWDOd4V0vwPkmYEVka_j6xw,1015
|
81
81
|
xmos_ai_tools/runtime/include/lib_tflite_micro/src/thread_call.h,sha256=KNG-3gNWMSonzYTGbk4L0kT8WU9JD0bOzlk8naz7JO0,4965
|
82
82
|
xmos_ai_tools/runtime/include/lib_tflite_micro/src/tflite-xcore-kernels/conv2d_float.h,sha256=XfVVWAKhbv6nByOzO1j6WA4oQ4RTX3PvYx22f-_3JFA,7681
|
83
|
-
xmos_ai_tools/runtime/include/lib_tflite_micro/src/tflite-xcore-kernels/xcore_common.h,sha256=HhUfwS9tq59jyXx79vqHlfEkk2hnRMkFXd2atPvoHhg,371
|
84
83
|
xmos_ai_tools/runtime/include/lib_tflite_micro/src/tflite-xcore-kernels/xcore_custom_options.h,sha256=lC4Tw1Pxxg3zOXRdqNNtokuU-_cX9TTkYmGLe47-9dQ,630
|
85
84
|
xmos_ai_tools/runtime/include/lib_tflite_micro/src/tflite-xcore-kernels/xcore_error_reporter.h,sha256=_NIzvBYMqlwJexYESP5t5JXpxYTt-ZKq-1AdqAB9-Sc,812
|
86
85
|
xmos_ai_tools/runtime/include/lib_tflite_micro/src/tflite-xcore-kernels/xcore_interpreter.h,sha256=-0BNn65tzxWgNnHLolCYyUYhboL9nN3ksKni3BjH6QU,1801
|
87
|
-
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=YdprKTg4PO0KdlW1RLfb9GYxzRoXmLVxsZb0wRafF6s,2781
|
88
87
|
xmos_ai_tools/runtime/include/lib_tflite_micro/src/tflite-xcore-kernels/xcore_profiler.h,sha256=Ytqbj4TsbhZrtl42I2dgLyeloLi-1vZwjysIoOkgX9s,1239
|
89
88
|
xmos_ai_tools/runtime/include/lib_tflite_micro/src/tflite-xcore-kernels/xcore_utils.h,sha256=CkxEhyN7i2rmlk_ua18XH1XDV_E4mS2u3Ph48mIhN7M,4747
|
90
89
|
xmos_ai_tools/runtime/include/lib_xud/lib_xud/api/xud.h,sha256=aQNbN6EvpVQm-OkgE_JGn2SeqYE_sKtwWZebu50IwnE,20701
|
@@ -302,7 +301,7 @@ xmos_ai_tools/runtime/include/tensorflow/lite/micro/examples/person_detection/im
|
|
302
301
|
xmos_ai_tools/runtime/include/tensorflow/lite/micro/examples/person_detection/main_functions.h,sha256=2Nk1orPJIyPMy_DcFjkQqSmEWGDqX23s5TCclgQPlRs,1348
|
303
302
|
xmos_ai_tools/runtime/include/tensorflow/lite/micro/examples/person_detection/model_settings.h,sha256=Q542MHVO5E60EVo-II6m7v3n2m6UHiG1FndKOJKhD80,1477
|
304
303
|
xmos_ai_tools/runtime/include/tensorflow/lite/micro/kernels/activation_utils.h,sha256=52ogkH5rTd6fhcLfCwm05xqOe-oL_z1eqvfkpSy9bmg,1966
|
305
|
-
xmos_ai_tools/runtime/include/tensorflow/lite/micro/kernels/activations.h,sha256=
|
304
|
+
xmos_ai_tools/runtime/include/tensorflow/lite/micro/kernels/activations.h,sha256=yXbpYtzGsf9SsZQRCz101GB6qOOrTCRPjCN08-MdEMk,2433
|
306
305
|
xmos_ai_tools/runtime/include/tensorflow/lite/micro/kernels/add.h,sha256=7nUJTHJPIsVVba62UobMH2oLCVy0mXSffTE_Da4LcSU,2495
|
307
306
|
xmos_ai_tools/runtime/include/tensorflow/lite/micro/kernels/circular_buffer.h,sha256=h0HFLP97O2BJjgRxeQ_CCP6cp6g1Srjt8EcVennr0uc,1734
|
308
307
|
xmos_ai_tools/runtime/include/tensorflow/lite/micro/kernels/circular_buffer_flexbuffers_generated_data.h,sha256=9dP9pAtIN-GMB7Y4FI-UJ8LDy7akIxKpGxI6YkeUecg,934
|
@@ -379,17 +378,17 @@ xmos_ai_tools/runtime/include/tensorflow/lite/micro/tools/benchmarking/metrics.h
|
|
379
378
|
xmos_ai_tools/runtime/include/tensorflow/lite/micro/tools/benchmarking/op_resolver.h,sha256=g0dl9tzUqngiINvjBlqDclFqvkC85MC4kbU13vE4OkY,6071
|
380
379
|
xmos_ai_tools/runtime/include/tensorflow/lite/schema/schema_generated.h,sha256=OzGCvswrW_FArm-HxD70BExn0PVtBbHAFPDO6ZZOFtc,1093177
|
381
380
|
xmos_ai_tools/runtime/include/tensorflow/lite/schema/schema_utils.h,sha256=tkHMDPARjIqppYCVInIowwdHxjNP3pfSS9O7vx-ODeo,1333
|
382
|
-
xmos_ai_tools/runtime/lib/libhost_xtflitemicro.a,sha256=
|
383
|
-
xmos_ai_tools/runtime/lib/libxtflitemicro.a,sha256=
|
381
|
+
xmos_ai_tools/runtime/lib/libhost_xtflitemicro.a,sha256=02QNMG8z6Gc6O1hi6WhPoyxNaU7uX278J95a1fSLqUU,2431256
|
382
|
+
xmos_ai_tools/runtime/lib/libxtflitemicro.a,sha256=mU05QFt_TIbBrNiqmLw3_dpMXQvQwFfBAnxeoB70Vn8,70440318
|
384
383
|
xmos_ai_tools/xformer/__init__.py,sha256=jA0xba6ZitK9HwWvDJewM8AMU4IZnx_iB1GSBrRUGvU,1627
|
385
384
|
xmos_ai_tools/xformer/flash.py,sha256=MG4coi_Lvvg-oQmw1pomJD8eeOH4gAMjixjBFvO2BCk,6376
|
386
385
|
xmos_ai_tools/xinterpreters/__init__.py,sha256=PFRB9VxOLKaA--j2ZvWGcmesv2C6uNYqJ_kBam68aUI,50
|
387
386
|
xmos_ai_tools/xinterpreters/exceptions.py,sha256=HOjADxHYMPI9mN0YIbWxtw9hSeL2B6XWWwqtGtyJdVs,577
|
388
387
|
xmos_ai_tools/xinterpreters/host_interpreter.py,sha256=No-g29_twbIaJ4S4fzU5TGpKd4WPVEE0737HtL877sw,25692
|
389
|
-
xmos_ai_tools/xinterpreters/libs/macos/xtflm_python.1.0.1.dylib,sha256=
|
390
|
-
xmos_ai_tools/xinterpreters/libs/macos/xtflm_python.dylib,sha256=
|
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.
|
395
|
-
xmos_ai_tools-1.3.2.
|
388
|
+
xmos_ai_tools/xinterpreters/libs/macos/xtflm_python.1.0.1.dylib,sha256=uwA1dNlFvRyw-lyg7msQ2P_vi6syL4OGWWZj8pa3fWE,2321592
|
389
|
+
xmos_ai_tools/xinterpreters/libs/macos/xtflm_python.dylib,sha256=uwA1dNlFvRyw-lyg7msQ2P_vi6syL4OGWWZj8pa3fWE,2321592
|
390
|
+
xmos_ai_tools-1.3.2.dev90.data/data/bin/xcore-opt,sha256=s02tefnJ7Sm7TdbJPz0qB8SK6052cMXq2uL4uwB0BJE,283234872
|
391
|
+
xmos_ai_tools-1.3.2.dev90.dist-info/METADATA,sha256=84FC4gHUEBTSb51pvaDCXRvn0z5zY717Q_nj9WrSQ8Q,1341
|
392
|
+
xmos_ai_tools-1.3.2.dev90.dist-info/WHEEL,sha256=cblCMhPsi-5aS-1Fj5LRCkSbCUQwa2nrUvkiKN0vRpQ,113
|
393
|
+
xmos_ai_tools-1.3.2.dev90.dist-info/top_level.txt,sha256=YWegea73ll3tMlRWRdHJemUy2VOuEYDdOIaffxu_eF0,14
|
394
|
+
xmos_ai_tools-1.3.2.dev90.dist-info/RECORD,,
|
@@ -1,19 +0,0 @@
|
|
1
|
-
#ifndef XCORE_COMMON_H_
|
2
|
-
#define XCORE_COMMON_H_
|
3
|
-
|
4
|
-
#include <cassert>
|
5
|
-
#include <cstdint>
|
6
|
-
|
7
|
-
namespace tflite_micro {
|
8
|
-
namespace ops {
|
9
|
-
namespace micro {
|
10
|
-
namespace xcore {
|
11
|
-
|
12
|
-
void calculateThreadSplit(int &tc, int split_size, int split_start[], int split_end[]);
|
13
|
-
|
14
|
-
} // namespace xcore
|
15
|
-
} // namespace micro
|
16
|
-
} // namespace ops
|
17
|
-
} // namespace tflite_micro
|
18
|
-
|
19
|
-
#endif // XCORE_COMMON_H_
|
File without changes
|
File without changes
|