-
Notifications
You must be signed in to change notification settings - Fork 695
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
[Bug] Xamarin.TensorFlow.Lite.Gpu does not define any types #876
Comments
@OutSorcerer Thanks for the feedback. api.xml
So GpuDelegate should have been generated. MCW - not generated!?!?! I need to see why.
content of aar:
So, native libs. Makes sense, but some c# should have been generated. Decompiled
Gpu.Delegate.java:
https://docs.microsoft.com/en-us/dotnet/api/java.io.icloseable?view=xamarin-android-sdk-9 Confirmed.
OK. IDelegate was generated. Reference might be wrong.
Confirmed: Reference to TesnorFlow.Lite project is missing. |
@OutSorcerer Can you provide minimal repro sample as zip and attach it here, please? Any sample helps us a lot for testing etc. |
Reminder message to myself: check package to namespace mapping Matadata.xml. Something is not working! |
Solved: BuildAction was None |
Bumps to do:
Will not be fixed (no GPU and too old):
|
published nugets https://www.nuget.org/packages/Xamarin.TensorFlow.Lite/ Please report if the fix works and if yes - close the issue. And again, sample would be appreciated (please) |
@moljac, thank you very much for the fixes! As you requested here is the code that reproduces this bug: https://github.com/OutSorcerer/MushroomDetector/blob/master/MushroomDetector.Android/TensorflowClassifier.cs#L26 I can also confirm that updating packages |
Thanks @OutSorcerer I will add sample to the repo. I hope this is OK with you. |
Ups. Seems like I will not. It is more that the repro sample. |
Trying to use
Xamarin.TensorFlow.Lite.Gpu
version2.1.0
like thisresults in
No types can be found in the
Xamarin.TensorFlow.Lite.Gpu
assembly using Object Browser in Visual studio as well as using a decompiler.Interpreter
fromXamarin.TensorFlow.Lite
works fine in the same project. When comparing these two packages in decompilerXamarin.TensorFlow.Lite
hasbut in
Xamarin.TensorFlow.Lite.Gpu
the corresponding method is empty:Please check if the bug really exists.
Otherwise, maybe someone would be so kind as to post a small example with
GpuDelegate
(I was not able to find any examples ofXamarin.TensorFlow.Lite.Gpu
on the web).The text was updated successfully, but these errors were encountered: