Skip to content

Commit 4684e40

Browse files
jdduketensorflower-gardener
authored andcommitted
Clarify default Interpreter NNAPI behavior
PiperOrigin-RevId: 325507160 Change-Id: Id2063801d286ebda56e0105c806aaed52a930e72
1 parent 5296ad4 commit 4684e40

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tensorflow/lite/interpreter.h

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,11 @@ class Interpreter {
364364
/// Returns status of success or failure.
365365
TfLiteStatus Invoke();
366366

367-
/// Enable or disable the NN API (true to enable)
367+
/// Enable or disable NNAPI (true to enable). Disabled by default.
368+
///
369+
/// WARNING: NNAPI cannot be disabled after the graph has been prepared
370+
/// (via `AllocateTensors`) with NNAPI enabled.
371+
///
368372
/// NOTE: This API is deprecated, prefer using the NNAPI delegate directly.
369373
/// This method will be removed in a future release.
370374
void UseNNAPI(bool enable);

0 commit comments

Comments
 (0)