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

Remove Delegates support #83

Open
Cuse499 opened this issue Dec 12, 2022 · 0 comments
Open

Remove Delegates support #83

Cuse499 opened this issue Dec 12, 2022 · 0 comments

Comments

@Cuse499
Copy link

Cuse499 commented Dec 12, 2022

Hi, I am using emgutf v2.8.0.1418 with Xamarin Forms targeting Android. I am running pose detection and want to apply a toggle to switch between using CPU/GPU/NNAPI/XNNPack for performance comparison.

I use the following code to apply the delegate live while the interpreter is running. Switching from no delegate (CPU) to the GPU delegate and subsequently to the other delegates.
_interpreter.ModifyGraphWithDelegate(delegateToApply);

However, I am having trouble going back to using just using the CPU. Can you please provide some guidance?

Looking at the TensorFlow GitHub library, there appears to be an interpreter method "RemoveAllDelegates()" that might be what I want to use, but it doesn't seem to exist in emgutf.

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

1 participant