abdelaziz-mahdy / pytorch_lite

flutter package to help run pytorch lite models classification and YoloV5 and YoloV8.
MIT License
51 stars 22 forks source link

latest ffi commit #65

Open abdelaziz-mahdy opened 10 months ago

abdelaziz-mahdy commented 10 months ago

FFI Integration Tracking PR

Overview

This PR is intended for tracking the integration of the Foreign Function Interface (FFI) with our current system. It includes the latest FFI commit available.

Current State

Setup and Progress

Completed Tasks

Pending or Previously Completed in Native

Next Steps

Contribution

Contributors are welcome to assist in addressing the pending tasks. Please ensure you follow the project's contribution guidelines for submitting your changes.


Note: This PR is for tracking and discussion purposes and may not include the final implementation directly.

the latest ffi implementation is on the latest-ffi branch mentioned in this pr https://github.com/abdelaziz-mahdy/pytorch_lite/tree/latest-ffi

cyrillkuettel commented 10 months ago

I researched this topic quite a bit. While I don't have a solution yet, I will write down my thoughts here:

The Native assets feature that is currently discussed seems to adresss exactly this issue:

The current way of bundling native code with Dart packages is far from ideal, we will introduce "Native Assets" to Dart.

We also could figure out how others are doing it. Many of them package the library into a .framework:

Edit: