xmos-ai-tools 1.3.2.dev82__py3-none-macosx_10_15_universal2.whl → 1.3.2.dev88__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.
@@ -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) 2020, XMOS Ltd, All rights reserved
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 = 3;
8
+ static const unsigned minor_version = 4;
9
9
  static const unsigned patch_version = 0;
10
10
 
11
11
  } // namespace lib_nn
@@ -5,7 +5,7 @@
5
5
  namespace lib_tflite_micro {
6
6
 
7
7
  static const unsigned major_version = 0;
8
- static const unsigned minor_version = 6;
8
+ static const unsigned minor_version = 7;
9
9
  static const unsigned patch_version = 0;
10
10
 
11
11
  } // namespace lib_tflite_micro
@@ -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
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: xmos_ai_tools
3
- Version: 1.3.2.dev82
3
+ Version: 1.3.2.dev88
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/e0176c588547765b55a1bdb0754cd9aee325aa5a/README.md) for documentation on using xmos-ai-tools to deploy AI models on xcore.
33
+ Click [here](https://github.com/xmos/ai_tools/blob/66dbfab85dd3e10cb32dc5a7e2150a5850190092/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=iTZcsp941d4fT574C_aUsHDAkLAWYxoFM4EjW7ypm94,4741
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=rQGweJdnfCBB1y3hfMCqQzM_PFqmDomLPVn57qkWkAg,2763
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=P0otpsAVvhiPNpXQu6uJUrjygoOTaHEJlIegIMyj_W4,303
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=zwy-Yay7mJg09OQpzKyNfITtjfe0Jy3IgErrPdH31I0,318
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=WKen_NUF49bZShYfKIUYh9FV050ZbZZh6mOTurP53c8,2663
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=iqM-31FgQpYhVCCOJ10kGy6lgYB23EkdKq0ggd9pJyg,2225
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=jNN_1DOJW6WPMgvU09mA4OrfnFKdPR3mPD4lIRP9Zrk,2421784
383
- xmos_ai_tools/runtime/lib/libxtflitemicro.a,sha256=J8U3_s3VtpOw6sAt-BBe0exFKCz8Fwu-PXUq1VNOFHg,70249948
381
+ xmos_ai_tools/runtime/lib/libhost_xtflitemicro.a,sha256=O6l7pJbW_iGWiIIz2HDIXPv8bKTK8yqqsaHhVM7HJks,2431256
382
+ xmos_ai_tools/runtime/lib/libxtflitemicro.a,sha256=osLpf_IMsvsbhalzKFdE9jgkhJX4k_FTSIUHjAFXygQ,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=AIA1zz3Dqw3zM_oFVc4OE4wrfhB-Ny0KlUTDJ0eB7Ok,2320632
390
- xmos_ai_tools/xinterpreters/libs/macos/xtflm_python.dylib,sha256=AIA1zz3Dqw3zM_oFVc4OE4wrfhB-Ny0KlUTDJ0eB7Ok,2320632
391
- xmos_ai_tools-1.3.2.dev82.data/data/bin/xcore-opt,sha256=uZvOj6f8ZCOaY46JttQ-4e46Yx9Kkto6YkNN1GCKvFk,283063304
392
- xmos_ai_tools-1.3.2.dev82.dist-info/METADATA,sha256=Q-PYNgM5BVrscvof22ehfuMcFPasgKpk-K0t0q32kkM,1341
393
- xmos_ai_tools-1.3.2.dev82.dist-info/WHEEL,sha256=cblCMhPsi-5aS-1Fj5LRCkSbCUQwa2nrUvkiKN0vRpQ,113
394
- xmos_ai_tools-1.3.2.dev82.dist-info/top_level.txt,sha256=YWegea73ll3tMlRWRdHJemUy2VOuEYDdOIaffxu_eF0,14
395
- xmos_ai_tools-1.3.2.dev82.dist-info/RECORD,,
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.dev88.data/data/bin/xcore-opt,sha256=s02tefnJ7Sm7TdbJPz0qB8SK6052cMXq2uL4uwB0BJE,283234872
391
+ xmos_ai_tools-1.3.2.dev88.dist-info/METADATA,sha256=HSPgvC1xhPoh7UIKCP891Bg3iUr-0pOKVzYi0qXbMGM,1341
392
+ xmos_ai_tools-1.3.2.dev88.dist-info/WHEEL,sha256=cblCMhPsi-5aS-1Fj5LRCkSbCUQwa2nrUvkiKN0vRpQ,113
393
+ xmos_ai_tools-1.3.2.dev88.dist-info/top_level.txt,sha256=YWegea73ll3tMlRWRdHJemUy2VOuEYDdOIaffxu_eF0,14
394
+ xmos_ai_tools-1.3.2.dev88.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_