Skip to content

Remove Delegates support #83

@Cuse499

Description

@Cuse499

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions