public class NnApiDelegate extends Object implements Delegate, AutoCloseable
Delegate
for NNAPI inference.Constructor and Description |
---|
NnApiDelegate() |
Modifier and Type | Method and Description |
---|---|
void |
close()
The NNAPI delegate is singleton.
|
long |
getNativeHandle()
Returns a native handle to the TensorFlow Lite delegate implementation.
|
public long getNativeHandle()
Delegate
Note: The Java Delegate
maintains ownership of the native delegate instance, and
must ensure its existence for the duration of usage with any Interpreter
.
getNativeHandle
in interface Delegate
public void close()
close
in interface AutoCloseable
Copyright © 2022. All rights reserved.