Skip to content

Commit 618c13e

Browse files
committed
Sync from upstream TF.
1 parent f5c36ef commit 618c13e

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

tensorflow/lite/core/c/common.h

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1352,7 +1352,15 @@ typedef enum TfLiteDelegateFlags {
13521352
/// operator information using `Profiler::EventType::OPERATOR_INVOKE_EVENT`
13531353
/// and the results will appear in the operator-wise Profiling section and not
13541354
/// in the Delegate internal section.
1355-
kTfLiteDelegateFlagsPerOperatorProfiling = 4
1355+
kTfLiteDelegateFlagsPerOperatorProfiling = 4,
1356+
1357+
// This flag can be used by callers to hint that the delegate is likely to
1358+
// delegate the entire graph to a single delegate so certain allocations can
1359+
// be skipped.
1360+
// This is an ADVANCED feature and should only be used if the caller has
1361+
// prior knowledge that the delegate will fully delegate all subgraphs
1362+
// to a single delegate.
1363+
kTfLiteDelegateFlagsHintFullyDelegatedToSingleDelegate = 8,
13561364
} TfLiteDelegateFlags;
13571365

13581366
/// WARNING: This is an experimental interface that is subject to change.

0 commit comments

Comments
 (0)