Skip to content

Commit c907ad1

Browse files
ggawryalcopybara-github
authored andcommitted
Replace forward quotes with backward quotes in TFLite opaque api documentation.
PiperOrigin-RevId: 828858312
1 parent c4f7cdf commit c907ad1

File tree

2 files changed

+163
-163
lines changed

2 files changed

+163
-163
lines changed

tflite/core/c/c_api_opaque.cc

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -423,19 +423,19 @@ TfLiteStatus TfLiteOpaqueContextGetNodeAndRegistration(
423423
context, node_index, &local_node, &registration);
424424
if (status != kTfLiteOk) return status;
425425

426-
// When the 'registration' object obtained via 'GetNodeAndRegistration'
427-
// has its 'registration_external' field set then we can load that into the
428-
// caller's 'registration_external' pointer and return early.
426+
// When the `registration` object obtained via `GetNodeAndRegistration`
427+
// has its `registration_external` field set then we can load that into the
428+
// caller's `registration_external` pointer and return early.
429429
*node = reinterpret_cast<TfLiteOpaqueNode*>(local_node);
430430
if (registration->registration_external) {
431431
*registration_external = registration->registration_external;
432432
return kTfLiteOk;
433433
}
434434

435-
// When the 'registration' object obtained via 'GetNodeAndRegistration'
436-
// does *not* have its 'registration_external' field set then we need to
435+
// When the `registration` object obtained via `GetNodeAndRegistration`
436+
// does *not* have its `registration_external` field set then we need to
437437
// create a TfLiteOperator on the fly, and set its field according
438-
// to the 'TfLiteRegistration' object.
438+
// to the `TfLiteRegistration` object.
439439
auto derived_registration =
440440
tflite::internal::CommonOpaqueConversionUtil::ObtainOperator(
441441
context, registration, node_index);
@@ -459,12 +459,12 @@ TfLiteStatus TfLiteOpaqueContextReplaceNodeSubsetsWithDelegateKernels(
459459
TfLiteContext* context = reinterpret_cast<TfLiteContext*>(opaque_context);
460460
TfLiteDelegate* delegate = reinterpret_cast<TfLiteDelegate*>(opaque_delegate);
461461

462-
// Wrap the provided 'registration_external' as a regular 'TfLiteRegistration'
462+
// Wrap the provided `registration_external` as a regular `TfLiteRegistration`
463463
// object to reduce the places in the TF Lite runtime that need to be aware
464-
// of 'TfLiteOperator's. Note that it is important to
465-
// brace-initialize the 'TfLiteRegistration' so that we pass a registration to
466-
// 'ReplaceNodeSubsetsWithDelegateKernels' that has all of its fields set to
467-
// null, except the 'registration_external' one.
464+
// of `TfLiteOperator`s. Note that it is important to
465+
// brace-initialize the `TfLiteRegistration` so that we pass a registration to
466+
// `ReplaceNodeSubsetsWithDelegateKernels` that has all of its fields set to
467+
// null, except the `registration_external` one.
468468
TfLiteRegistration registration{};
469469
registration.registration_external = registration_external;
470470

0 commit comments

Comments
 (0)