Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ANE support? #1

Open
iamgeo92 opened this issue Feb 25, 2023 · 3 comments
Open

ANE support? #1

iamgeo92 opened this issue Feb 25, 2023 · 3 comments

Comments

@iamgeo92
Copy link

s2nnc seems a bit slower compared to coreml. any plans to support ANE?

@liuliu
Copy link
Owner

liuliu commented Feb 25, 2023

There is no official path for ANE support (see also tinygrad / PyTorch), but it seems plausible through MPSGraph with OptimizationLevel1 (that seems to use ANE).

Having said that, ANE support through that seems require op authors to maintain a list which can be successfully translated, which will not, and that is a very labor-intensive task involves a lot of trials-and-errors with different devices (the ANE support on different devices also varies).

@ghost
Copy link

ghost commented Mar 3, 2023

hmm, how is apple doing it for TF and pytorch. any idea guys?
Maybe try building interface for non apple NEs on the market

@liuliu
Copy link
Owner

liuliu commented Mar 3, 2023

I am not sure about TF. PyTorch doesn't support ANE. The way Apple doing is to introduce coremltools which can trace TF / PyTorch execution and build computation graph internally through CoreML to support computing capabilities. That's why it doesn't support full set of PyTorch ops.

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

No branches or pull requests

2 participants