Skip to content

Update libraries to v2.19.0#389

Merged
asus4 merged 5 commits intomasterfrom
update-v2.19.0
Jun 13, 2025
Merged

Update libraries to v2.19.0#389
asus4 merged 5 commits intomasterfrom
update-v2.19.0

Conversation

@asus4
Copy link
Copy Markdown
Owner

@asus4 asus4 commented Jun 13, 2025

  • Update TFLite libraries to v2.19.0
  • Support 16kb page size Support Android 16 KB page sizes #386
    • Dropped "Packages/com.github.asus4.tflite/Plugins/Android/arm64-v8a/libtensorflowlite_gpu_gl.so" support as it doesn't support 16kb page size.

@asus4 asus4 requested a review from Copilot June 13, 2025 12:40
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR upgrades TensorFlow Lite libraries to v2.19.0, adds new delegate features, consolidates type definitions, and updates package metadata and binaries.

  • Bump core TFLite C API and Unity plugin versions to 2.19.0
  • Introduce new Slinky flag, in-memory weight cache APIs, metadata access, and new built-in ops
  • Remove deprecated headers, consolidate type enums into tflite_types.h, and clean up operator API

Reviewed Changes

Copilot reviewed 31 out of 31 changed files in this pull request and generated no comments.

Show a summary per file
File Description
Packages/.../xnnpack_delegate.h Added Slinky flag and in-memory weight cache API methods
Packages/.../tflite_types.h New header defining TfLiteType, quantization params, and dimension types
Packages/.../registration_external.h Deleted deprecated external registration API header
Packages/.../operator.h Cleaned up operator creation API; potential name collision
Packages/.../common.h Extended external contexts, added unreachable macros and bf16 union
Packages/.../c_api_types.h Moved type enums to tflite_types.h, added kTfLiteOutputShapeNotKnown
Packages/.../c_api_opaque.h Added GetExternalContext and GetMetadata C API functions
Packages/.../c_api_experimental.h Fixed typo in experimental API documentation
Packages/.../builtin_ops.h Added new StableHLO ops: ShiftLeft, Cbrt, Case
Packages/.../TensorFlowLiteC.h Imported new tflite_types.h
Packages/.../package.json (common & mediapipe) Bumped Unity package versions to 2.19.0
Packages/.../*.dll / *.so / *.aar Updated library binary blobs for Windows, Linux, and Android
Packages/.../arm64-v8a/libtensorflowlite_gpu_gl.so.meta Adjusted Android plugin importer settings
Comments suppressed due to low confidence (3)

Packages/com.github.asus4.tflite/Plugins/iOS/TensorFlowLiteC.framework/Headers/operator.h:85

  • The function TfLiteOperatorCreate is now declared twice in this C header (once for three parameters and once for four), which causes a name collision. Restore a unique name (e.g., TfLiteOperatorCreateWithData) for the overload that accepts user_data.
TFL_CAPI_EXPORT extern TfLiteOperator* TfLiteOperatorCreate(

Packages/com.github.asus4.tflite/Plugins/iOS/TensorFlowLiteC.framework/Headers/common.h:325

  • Using enum ... : int is valid in C++ but not in standard C. To maintain C compatibility for this API header, remove the : int qualifier or conditionally guard it under #ifdef __cplusplus.
typedef enum TfLiteQuantizationType : int {

Packages/com.github.asus4.tflite/Plugins/Android/arm64-v8a/libtensorflowlite_gpu_gl.so.meta:19

  • The metadata sets Exclude Android: 1 for an ARM64 Android library, which will prevent it from being included in Android builds. Set this flag to 0 to ensure the plugin is packaged correctly for Android.
Exclude Android: 1

@asus4 asus4 self-assigned this Jun 13, 2025
@asus4 asus4 marked this pull request as ready for review June 13, 2025 18:18
@asus4 asus4 merged commit dea65c3 into master Jun 13, 2025
1 check passed
@asus4 asus4 deleted the update-v2.19.0 branch June 13, 2025 18:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants