chore: import upstream snapshot with attribution
cffconvert / validate (push) Has been skipped
License Check / license-check (push) Failing after 2s

This commit is contained in:
wehub-resource-sync
2026-07-13 12:14:16 +08:00
commit 8a852e4b4e
36502 changed files with 9277225 additions and 0 deletions
@@ -0,0 +1,64 @@
# Copyright 2026 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# ==============================================================================
# Generated by c2devsite (go/c2devsite)
toc:
- title: "tflite"
path: /lite/api_docs/cc/namespace/tflite
section:
- title: Classes
section:
- title: "Allocation"
path: /lite/api_docs/cc/class/tflite/allocation
- title: "ErrorReporter"
path: /lite/api_docs/cc/class/tflite/error-reporter
- title: "FileCopyAllocation"
path: /lite/api_docs/cc/class/tflite/file-copy-allocation
- title: "MemoryAllocation"
path: /lite/api_docs/cc/class/tflite/memory-allocation
- title: "MMAPAllocation"
path: /lite/api_docs/cc/class/tflite/m-m-a-p-allocation
- title: "MutableOpResolver"
path: /lite/api_docs/cc/class/tflite/mutable-op-resolver
- title: "OpResolver"
path: /lite/api_docs/cc/class/tflite/op-resolver
- title: "TfLiteIntArrayView"
path: /lite/api_docs/cc/class/tflite/tf-lite-int-array-view
- title: Structs
section:
- title: "StderrReporter"
path: /lite/api_docs/cc/struct/tflite/stderr-reporter
- title: "tflite::impl"
path: /lite/api_docs/cc/namespace/tflite/impl
section:
- title: Classes
section:
- title: "FlatBufferModel"
path: /lite/api_docs/cc/class/tflite/impl/flat-buffer-model
- title: "Interpreter"
path: /lite/api_docs/cc/class/tflite/impl/interpreter
- title: "InterpreterBuilder"
path: /lite/api_docs/cc/class/tflite/impl/interpreter-builder
- title: "tflite::op_resolver_hasher"
path: /lite/api_docs/cc/namespace/tflite/op-resolver-hasher
section:
- title: Structs
section:
- title: "OperatorKeyHasher"
path: /lite/api_docs/cc/struct/tflite/op-resolver-hasher/operator-key-hasher
- title: "ValueHasher"
path: /lite/api_docs/cc/struct/tflite/op-resolver-hasher/value-hasher
- title: "BuiltinOperator >"
path: /lite/api_docs/cc/struct/tflite/op-resolver-hasher/value-hasher-tflite/builtin-operator-
@@ -0,0 +1,158 @@
<!DOCTYPE html>
<html devsite="">
<head>
<title>tflite::Allocation Class Reference</title>
<meta name="page_type" value="reference"/>
<meta content="reference" name="page_type"/></head>
<body><div id="top"><!-- do not remove this div --></div><h1>tflite::<wbr/>Allocation</h1><b>This is an abstract class.</b><br/><br/><code>#include &lt;allocation.h&gt;</code><p>A memory allocation handle. This could be a mmap or shared memory. </p><h2>Summary</h2><h3>Inheritance</h3>Direct Known Subclasses:<a href="/lite/api_docs/cc/class/tflite/file-copy-allocation">tflite::FileCopyAllocation</a>, <a href="/lite/api_docs/cc/class/tflite/memory-allocation">tflite::MemoryAllocation</a>, <a href="/lite/api_docs/cc/class/tflite/m-m-a-p-allocation">tflite::MMAPAllocation</a><table class="constructors responsive">
<tr>
<th colspan="2">
<h3>Constructors and Destructors</h3>
</th>
</tr>
<tr>
<td colspan="2">
<code><a href="#classtflite_1_1_allocation_1ab62cb9ed509a75199aefe16b91fd3f54">~Allocation</a>()</code>
<br/>
</td>
</tr>
</table><table class="constants responsive">
<tr>
<th colspan="2">
<h3>Public types</h3>
</th>
</tr>
<tr>
<td>
<code><a href="#classtflite_1_1_allocation_1a57c1ac8cad05ad10eae5e8ce02b6f6f6">Type</a></code>
</td>
<td>enum</td>
</tr>
</table><table class="properties responsive">
<tr>
<th colspan="2">
<h3>Protected attributes</h3>
</th>
</tr>
<tr>
<td>
<code><a href="#classtflite_1_1_allocation_1a1b717e96538436dd52529058945b5cc7">error_reporter_</a></code>
</td>
<td>
<div>
<code><a href="/lite/api_docs/cc/class/tflite/error-reporter.html#classtflite_1_1_error_reporter">ErrorReporter</a> *</code>
</div>
</td>
</tr>
</table><table class="methods responsive">
<tr>
<th colspan="2">
<h3>Public functions</h3>
</th>
</tr>
<tr>
<td>
<code><a href="#classtflite_1_1_allocation_1a84b2356c30a797105b0d7eac75412d52">base</a>() const =0</code>
</td>
<td>
<div>
<code>virtual const void *</code>
</div>
<div>Base pointer of this allocation. </div>
</td>
</tr>
<tr>
<td>
<code><a href="#classtflite_1_1_allocation_1ae9df951fa4dee4efdd494fb8285191c1">bytes</a>() const =0</code>
</td>
<td>
<div>
<code>virtual size_t</code>
</div>
<div>Size in bytes of the allocation. </div>
</td>
</tr>
<tr>
<td>
<code><a href="#classtflite_1_1_allocation_1ac6a4b9793db49252160bf68a47810bd8">type</a>() const </code>
</td>
<td>
<div>
<code>Type</code>
</div>
<div>Return the type of the <a href="/lite/api_docs/cc/class/tflite/allocation.html#classtflite_1_1_allocation">Allocation</a>. </div>
</td>
</tr>
<tr>
<td>
<code><a href="#classtflite_1_1_allocation_1a323eac69f78345003896774dacf5c663">valid</a>() const =0</code>
</td>
<td>
<div>
<code>virtual bool</code>
</div>
<div>Whether the allocation is valid. </div>
</td>
</tr>
</table><table class="methods responsive">
<tr>
<th colspan="2">
<h3>Protected functions</h3>
</th>
</tr>
<tr>
<td>
<code><a href="#classtflite_1_1_allocation_1adb0a80162b3ff5e56ea8182acaae2afc">Allocation</a>(<a href="/lite/api_docs/cc/class/tflite/error-reporter.html#classtflite_1_1_error_reporter">ErrorReporter</a> *error_reporter, Type type)</code>
</td>
<td>
<div>
<code></code>
</div>
</td>
</tr>
</table><h2>Public types</h2><div id="classtflite_1_1_allocation_1a57c1ac8cad05ad10eae5e8ce02b6f6f6">
<h3>Type</h3>
<pre class="prettyprint"> Type</pre>
<div></div>
</div><h2>Protected attributes</h2><div id="classtflite_1_1_allocation_1a1b717e96538436dd52529058945b5cc7">
<h3>error_reporter_</h3>
<pre class="prettyprint"><a href="/lite/api_docs/cc/class/tflite/error-reporter.html#classtflite_1_1_error_reporter">ErrorReporter</a> * error_reporter_</pre>
<div></div>
</div><h2>Public functions</h2><div id="classtflite_1_1_allocation_1a84b2356c30a797105b0d7eac75412d52">
<h3>base</h3>
<pre class="prettyprint">virtual const void * base() const =0</pre>
<div>
<p>Base pointer of this allocation. </p>
</div>
</div><div id="classtflite_1_1_allocation_1ae9df951fa4dee4efdd494fb8285191c1">
<h3>bytes</h3>
<pre class="prettyprint">virtual size_t bytes() const =0</pre>
<div>
<p>Size in bytes of the allocation. </p>
</div>
</div><div id="classtflite_1_1_allocation_1ac6a4b9793db49252160bf68a47810bd8">
<h3>type</h3>
<pre class="prettyprint">Type type() const </pre>
<div>
<p>Return the type of the <a href="/lite/api_docs/cc/class/tflite/allocation.html#classtflite_1_1_allocation">Allocation</a>. </p>
</div>
</div><div id="classtflite_1_1_allocation_1a323eac69f78345003896774dacf5c663">
<h3>valid</h3>
<pre class="prettyprint">virtual bool valid() const =0</pre>
<div>
<p>Whether the allocation is valid. </p>
</div>
</div><div id="classtflite_1_1_allocation_1ab62cb9ed509a75199aefe16b91fd3f54">
<h3>~Allocation</h3>
<pre class="prettyprint">virtual ~Allocation()</pre>
<div></div>
</div><h2>Protected functions</h2><div id="classtflite_1_1_allocation_1adb0a80162b3ff5e56ea8182acaae2afc">
<h3>Allocation</h3>
<pre class="prettyprint"> Allocation(
<a href="/lite/api_docs/cc/class/tflite/error-reporter.html#classtflite_1_1_error_reporter">ErrorReporter</a> *error_reporter,
Type type
)</pre>
<div></div>
</div></body>
</html>
@@ -0,0 +1,95 @@
<!DOCTYPE html>
<html devsite="">
<head>
<title>tflite::ErrorReporter Class Reference</title>
<meta name="page_type" value="reference"/>
<meta content="reference" name="page_type"/></head>
<body><div id="top"><!-- do not remove this div --></div><h1>tflite::<wbr/>ErrorReporter</h1><b>This is an abstract class.</b><br/><br/><code>#include &lt;error_reporter.h&gt;</code><p>A functor that reports error to supporting system. </p><h2>Summary</h2><p>Invoked similar to printf.</p><p>Usage: <a href="/lite/api_docs/cc/class/tflite/error-reporter.html#classtflite_1_1_error_reporter">ErrorReporter</a> foo; foo.Report("test %d", 5); or va_list args; foo.Report("test %d", args); // where args is va_list</p><p>Subclass <a href="/lite/api_docs/cc/class/tflite/error-reporter.html#classtflite_1_1_error_reporter">ErrorReporter</a> to provide another reporting destination. For example, if you have a GUI program, you might redirect to a buffer that drives a GUI error log box. </p><h3>Inheritance</h3>Direct Known Subclasses:<a href="/lite/api_docs/cc/struct/tflite/stderr-reporter">tflite::StderrReporter</a><table class="constructors responsive">
<tr>
<th colspan="2">
<h3>Constructors and Destructors</h3>
</th>
</tr>
<tr>
<td colspan="2">
<code><a href="#classtflite_1_1_error_reporter_1a8e2bbef79e5b6a2f7cc51bd41d39630c">~ErrorReporter</a>()</code>
<br/>
</td>
</tr>
</table><table class="methods responsive">
<tr>
<th colspan="2">
<h3>Public functions</h3>
</th>
</tr>
<tr>
<td>
<code><a href="#classtflite_1_1_error_reporter_1aea1c136767f97dd1313af0827b08da0a">Report</a>(const char *format, va_list args)=0</code>
</td>
<td>
<div>
<code>virtual int</code>
</div>
<div>Converts <code>args</code> to character equivalents according to <code>format</code> string, constructs the error string and report it. </div>
</td>
</tr>
<tr>
<td>
<code><a href="#classtflite_1_1_error_reporter_1aafbe9b684566270d57b94130fc2f676c">Report</a>(const char *format, ...)</code>
</td>
<td>
<div>
<code>int</code>
</div>
<div>Converts arguments to character equivalents according to <code>format</code> string, constructs the error string and report it. </div>
</td>
</tr>
<tr>
<td>
<code><a href="#classtflite_1_1_error_reporter_1af5e7bdb86b4c4aebcf9eeafb69a226d1">ReportError</a>(void *, const char *format, ...)</code>
</td>
<td>
<div>
<code>int</code>
</div>
<div>Equivalent to <code>Report</code> above. </div>
</td>
</tr>
</table><h2>Public functions</h2><div id="classtflite_1_1_error_reporter_1aea1c136767f97dd1313af0827b08da0a">
<h3>Report</h3>
<pre class="prettyprint">virtual int Report(
const char *format,
va_list args
)=0</pre>
<div>
<p>Converts <code>args</code> to character equivalents according to <code>format</code> string, constructs the error string and report it. </p>
<p>Returns number of characters written or zero on success, and negative number on error. </p>
</div>
</div><div id="classtflite_1_1_error_reporter_1aafbe9b684566270d57b94130fc2f676c">
<h3>Report</h3>
<pre class="prettyprint">int Report(
const char *format,
...
)</pre>
<div>
<p>Converts arguments to character equivalents according to <code>format</code> string, constructs the error string and report it. </p>
<p>Returns number of characters written or zero on success, and negative number on error. </p>
</div>
</div><div id="classtflite_1_1_error_reporter_1af5e7bdb86b4c4aebcf9eeafb69a226d1">
<h3>ReportError</h3>
<pre class="prettyprint">int ReportError(
void *,
const char *format,
...
)</pre>
<div>
<p>Equivalent to <code>Report</code> above. </p>
<p>The additional <code>void*</code> parameter is unused. This method is for compatibility with macros that takes <code>TfLiteContext</code>, like TF_LITE_ENSURE and related macros. </p>
</div>
</div><div id="classtflite_1_1_error_reporter_1a8e2bbef79e5b6a2f7cc51bd41d39630c">
<h3>~ErrorReporter</h3>
<pre class="prettyprint">virtual ~ErrorReporter()=default</pre>
<div></div>
</div></body>
</html>
@@ -0,0 +1,89 @@
<!DOCTYPE html>
<html devsite="">
<head>
<title>tflite::FileCopyAllocation Class Reference</title>
<meta name="page_type" value="reference"/>
<meta content="reference" name="page_type"/></head>
<body><div id="top"><!-- do not remove this div --></div><h1>tflite::<wbr/>FileCopyAllocation</h1><h2>Summary</h2><h3>Inheritance</h3>Inherits from: <a href="/lite/api_docs/cc/class/tflite/allocation">tflite::Allocation</a><table class="constructors responsive">
<tr>
<th colspan="2">
<h3>Constructors and Destructors</h3>
</th>
</tr>
<tr>
<td colspan="2">
<code><a href="#classtflite_1_1_file_copy_allocation_1ac8f0596c9cd8c67859f6101546eaa16e">FileCopyAllocation</a>(const char *filename, <a href="/lite/api_docs/cc/class/tflite/error-reporter.html#classtflite_1_1_error_reporter">ErrorReporter</a> *error_reporter)</code>
<br/>
<div>Loads the provided file into a heap memory region. </div>
</td>
</tr>
<tr>
<td colspan="2">
<code><a href="#classtflite_1_1_file_copy_allocation_1a7924f85c486f0472ff0770e47c58f1ff">~FileCopyAllocation</a>()</code>
<br/>
</td>
</tr>
</table><table class="methods responsive">
<tr>
<th colspan="2">
<h3>Public functions</h3>
</th>
</tr>
<tr>
<td>
<code><a href="#classtflite_1_1_file_copy_allocation_1afa421955fb26d528334f9a7fbd8d1550">base</a>() const override</code>
</td>
<td>
<div>
<code>const void *</code>
</div>
</td>
</tr>
<tr>
<td>
<code><a href="#classtflite_1_1_file_copy_allocation_1a649dd9f8844fa3ff805e3b92ae9e1072">bytes</a>() const override</code>
</td>
<td>
<div>
<code>size_t</code>
</div>
</td>
</tr>
<tr>
<td>
<code><a href="#classtflite_1_1_file_copy_allocation_1abee7921184711b059f7a1286aade6a33">valid</a>() const override</code>
</td>
<td>
<div>
<code>bool</code>
</div>
</td>
</tr>
</table><h2>Public functions</h2><div id="classtflite_1_1_file_copy_allocation_1ac8f0596c9cd8c67859f6101546eaa16e">
<h3>FileCopyAllocation</h3>
<pre class="prettyprint"> FileCopyAllocation(
const char *filename,
<a href="/lite/api_docs/cc/class/tflite/error-reporter.html#classtflite_1_1_error_reporter">ErrorReporter</a> *error_reporter
)</pre>
<div>
<p>Loads the provided file into a heap memory region. </p>
</div>
</div><div id="classtflite_1_1_file_copy_allocation_1afa421955fb26d528334f9a7fbd8d1550">
<h3>base</h3>
<pre class="prettyprint">const void * base() const override</pre>
<div></div>
</div><div id="classtflite_1_1_file_copy_allocation_1a649dd9f8844fa3ff805e3b92ae9e1072">
<h3>bytes</h3>
<pre class="prettyprint">size_t bytes() const override</pre>
<div></div>
</div><div id="classtflite_1_1_file_copy_allocation_1abee7921184711b059f7a1286aade6a33">
<h3>valid</h3>
<pre class="prettyprint">bool valid() const override</pre>
<div></div>
</div><div id="classtflite_1_1_file_copy_allocation_1a7924f85c486f0472ff0770e47c58f1ff">
<h3>~FileCopyAllocation</h3>
<pre class="prettyprint"> ~FileCopyAllocation() override</pre>
<div></div>
</div></body>
</html>
@@ -0,0 +1,522 @@
<!DOCTYPE html>
<html devsite="">
<head>
<title>tflite::impl::FlatBufferModel Class Reference</title>
<meta name="page_type" value="reference"/>
<meta content="reference" name="page_type"/></head>
<body>
<div id="top"><!-- do not remove this div --></div>
<h1>tflite::<wbr/>impl::<wbr/>FlatBufferModel</h1>
<h2>Summary</h2>
<aside class="note">
<b>Note:</b> <code>tflite::impl::FlatBufferModel</code> class is implementation details. Users should reference it as <code>tflite::FlatBufferModel</code> instead.
</aside>
<table class="constructors responsive">
<tr>
<th colspan="2">
<h3>Constructors and Destructors</h3>
</th>
</tr>
<tr>
<td colspan="2">
<code><a href="#classtflite_1_1impl_1_1_flat_buffer_model_1a00aa20b6f40d08c042aad316b9306df3">FlatBufferModel</a>(const FlatBufferModel &amp;)</code>
<br/>
</td>
</tr>
<tr>
<td colspan="2">
<code><a href="#classtflite_1_1impl_1_1_flat_buffer_model_1a8525ac7d8f97198012f53533264f25f1">~FlatBufferModel</a>()</code>
<br/>
</td>
</tr>
</table>
<table class="methods responsive">
<tr>
<th colspan="2">
<h3>Public static functions</h3>
</th>
</tr>
<tr>
<td>
<code><a href="#classtflite_1_1impl_1_1_flat_buffer_model_1a8c35c802badcd67b27013c7f4e5d69f2">BuildFromAllocation</a>(std::unique_ptr&lt; <a href="/lite/api_docs/cc/class/tflite/allocation.html#classtflite_1_1_allocation">Allocation</a> &gt; allocation, <a href="/lite/api_docs/cc/class/tflite/error-reporter.html#classtflite_1_1_error_reporter">ErrorReporter</a> *error_reporter)</code>
</td>
<td>
<div>
<code>std::unique_ptr&lt; FlatBufferModel &gt;</code>
</div>
<div>Builds a model directly from an allocation. </div>
</td>
</tr>
<tr>
<td>
<code><a href="#classtflite_1_1impl_1_1_flat_buffer_model_1aa0394bee07dcb66afcbffb1020f6b955">BuildFromBuffer</a>(const char *caller_owned_buffer, size_t buffer_size, <a href="/lite/api_docs/cc/class/tflite/error-reporter.html#classtflite_1_1_error_reporter">ErrorReporter</a> *error_reporter)</code>
</td>
<td>
<div>
<code>std::unique_ptr&lt; FlatBufferModel &gt;</code>
</div>
<div>Builds a model based on a pre-loaded flatbuffer. </div>
</td>
</tr>
<tr>
<td>
<code><a href="#classtflite_1_1impl_1_1_flat_buffer_model_1a66f82c70621340376720208507d6d91d">BuildFromFile</a>(const char *filename, <a href="/lite/api_docs/cc/class/tflite/error-reporter.html#classtflite_1_1_error_reporter">ErrorReporter</a> *error_reporter)</code>
</td>
<td>
<div>
<code>std::unique_ptr&lt; FlatBufferModel &gt;</code>
</div>
<div>Builds a model based on a file. </div>
</td>
</tr>
<tr>
<td>
<code><a href="#classtflite_1_1impl_1_1_flat_buffer_model_1a1b1d1c28f251321fcafd9ba8ae04e14f">BuildFromModel</a>(const tflite::Model *caller_owned_model_spec, <a href="/lite/api_docs/cc/class/tflite/error-reporter.html#classtflite_1_1_error_reporter">ErrorReporter</a> *error_reporter)</code>
</td>
<td>
<div>
<code>std::unique_ptr&lt; FlatBufferModel &gt;</code>
</div>
<div>Builds a model directly from a flatbuffer pointer Caller retains ownership of the buffer and should keep it alive until the returned object is destroyed. </div>
</td>
</tr>
<tr>
<td>
<code><a href="#classtflite_1_1impl_1_1_flat_buffer_model_1a8f959451f3bc0758fb89a51c1dd15547">ByteConvertModel</a>(std::unique_ptr&lt; FlatBufferModel &gt; model, <a href="/lite/api_docs/cc/class/tflite/error-reporter.html#classtflite_1_1_error_reporter">ErrorReporter</a> *error_reporter)</code>
</td>
<td>
<div>
<code>std::unique_ptr&lt; FlatBufferModel &gt;</code>
</div>
<div>Convert the TFLite buffers field between LE and BE format in a FlatBufferModel which is not empty and return the converted instance. </div>
</td>
</tr>
<tr>
<td>
<code><a href="#classtflite_1_1impl_1_1_flat_buffer_model_1a29738923249836d30c0a9bc1000e0641">ByteSwapBuffer</a>(int8_t tensor_type, size_t buffer_size, uint8_t *buffer)</code>
</td>
<td>
<div>
<code>void</code>
</div>
<div>Byte swap a constant buffer in place. </div>
</td>
</tr>
<tr>
<td>
<code><a href="#classtflite_1_1impl_1_1_flat_buffer_model_1a45f26e7052b972a11c520cfb3d0f6a94">ByteSwapFlatBufferModel</a>(std::unique_ptr&lt; FlatBufferModel &gt; model, <a href="/lite/api_docs/cc/class/tflite/error-reporter.html#classtflite_1_1_error_reporter">ErrorReporter</a> *error_reporter)</code>
</td>
<td>
<div>
<code>std::unique_ptr&lt; FlatBufferModel &gt;</code>
</div>
<div>Byte Swap the TFLite buffers field in a FlatBufferModel and return the swapped instance. </div>
</td>
</tr>
<tr>
<td>
<code><a href="#classtflite_1_1impl_1_1_flat_buffer_model_1ab92e054440ffbdafb7c19151b5f81b17">ByteSwapSerializedModel</a>(std::string *serialized_model)</code>
</td>
<td>
<div>
<code>void</code>
</div>
<div>Byte Swap the serialized String of a TFLite model in place. </div>
</td>
</tr>
<tr>
<td>
<code><a href="#classtflite_1_1impl_1_1_flat_buffer_model_1a4da359bffdbe229b72a2642f5f27c3d7">ByteSwapTFLiteModel</a>(const tflite::Model *tfl_model)</code>
</td>
<td>
<div>
<code>void</code>
</div>
<div>Byte swap the buffers field of a TFLite Model instance in place. </div>
</td>
</tr>
<tr>
<td>
<code><a href="#classtflite_1_1impl_1_1_flat_buffer_model_1ae81b10e1496884af894f4d6ee0e1a17b">ByteSwapTFLiteModelT</a>(tflite::ModelT *tfl_modelt)</code>
</td>
<td>
<div>
<code>void</code>
</div>
<div>Byte swap the buffers field of a TFLite ModelT instance in place. </div>
</td>
</tr>
<tr>
<td>
<code><a href="#classtflite_1_1impl_1_1_flat_buffer_model_1ae596a5f76ddfc906fed835a6bfa7f6e8">ReadAllMetadata</a>(const ::tflite::Model *model)</code>
</td>
<td>
<div>
<code>std::map&lt; std::string, std::string &gt;</code>
</div>
</td>
</tr>
<tr>
<td>
<code><a href="#classtflite_1_1impl_1_1_flat_buffer_model_1ab81c2685e53304944dab7dcbedfa90dd">VerifyAndBuildFromAllocation</a>(std::unique_ptr&lt; <a href="/lite/api_docs/cc/class/tflite/allocation.html#classtflite_1_1_allocation">Allocation</a> &gt; allocation, TfLiteVerifier *extra_verifier, <a href="/lite/api_docs/cc/class/tflite/error-reporter.html#classtflite_1_1_error_reporter">ErrorReporter</a> *error_reporter)</code>
</td>
<td>
<div>
<code>std::unique_ptr&lt; FlatBufferModel &gt;</code>
</div>
<div>Verifies whether the content of the allocation is legit, then builds a model based on the provided allocation. </div>
</td>
</tr>
<tr>
<td>
<code><a href="#classtflite_1_1impl_1_1_flat_buffer_model_1a75c22976a1948281c88cbcb22c016e75">VerifyAndBuildFromBuffer</a>(const char *caller_owned_buffer, size_t buffer_size, TfLiteVerifier *extra_verifier, <a href="/lite/api_docs/cc/class/tflite/error-reporter.html#classtflite_1_1_error_reporter">ErrorReporter</a> *error_reporter)</code>
</td>
<td>
<div>
<code>std::unique_ptr&lt; FlatBufferModel &gt;</code>
</div>
<div>Verifies whether the content of the buffer is legit, then builds a model based on the pre-loaded flatbuffer. </div>
</td>
</tr>
<tr>
<td>
<code><a href="#classtflite_1_1impl_1_1_flat_buffer_model_1aa3fb7e8581e21887e884529c4b66dcb6">VerifyAndBuildFromFile</a>(const char *filename, TfLiteVerifier *extra_verifier, <a href="/lite/api_docs/cc/class/tflite/error-reporter.html#classtflite_1_1_error_reporter">ErrorReporter</a> *error_reporter)</code>
</td>
<td>
<div>
<code>std::unique_ptr&lt; FlatBufferModel &gt;</code>
</div>
<div>Verifies whether the content of the file is legit, then builds a model based on the file. </div>
</td>
</tr>
</table>
<table class="methods responsive">
<tr>
<th colspan="2">
<h3>Public functions</h3>
</th>
</tr>
<tr>
<td>
<code><a href="#classtflite_1_1impl_1_1_flat_buffer_model_1a79091666372a065029f80542d0f76dcd">CheckModelIdentifier</a>() const </code>
</td>
<td>
<div>
<code>bool</code>
</div>
<div>Returns true if the model identifier is correct (otherwise false and reports an error). </div>
</td>
</tr>
<tr>
<td>
<code><a href="#classtflite_1_1impl_1_1_flat_buffer_model_1a9e97c601aad103c768a797ae6bd30c9b">GetMinimumRuntime</a>() const </code>
</td>
<td>
<div>
<code>std::string</code>
</div>
</td>
</tr>
<tr>
<td>
<code><a href="#classtflite_1_1impl_1_1_flat_buffer_model_1ae7314ca1da43d94b0de130331239330a">GetModel</a>() const </code>
</td>
<td>
<div>
<code>const tflite::Model *</code>
</div>
</td>
</tr>
<tr>
<td>
<code><a href="#classtflite_1_1impl_1_1_flat_buffer_model_1a8e23634cdfe9c6a0a482439793216734">ReadAllMetadata</a>() const </code>
</td>
<td>
<div>
<code>std::map&lt; std::string, std::string &gt;</code>
</div>
</td>
</tr>
<tr>
<td>
<code><a href="#classtflite_1_1impl_1_1_flat_buffer_model_1ae9576f8f03a5c5f0a8111053b325fa91">ValidateModelBuffers</a>(<a href="/lite/api_docs/cc/class/tflite/error-reporter.html#classtflite_1_1_error_reporter">ErrorReporter</a> *error_reporter)</code>
</td>
<td>
<div>
<code>void</code>
</div>
</td>
</tr>
<tr>
<td>
<code><a href="#classtflite_1_1impl_1_1_flat_buffer_model_1aa578f6bd19c0b413ca59e4f1953a022d">allocation</a>() const </code>
</td>
<td>
<div>
<code>const <a href="/lite/api_docs/cc/class/tflite/allocation.html#classtflite_1_1_allocation">Allocation</a> *</code>
</div>
</td>
</tr>
<tr>
<td>
<code><a href="#classtflite_1_1impl_1_1_flat_buffer_model_1a9cd2cfeb5cb724c238472fa2b7918028">error_reporter</a>() const </code>
</td>
<td>
<div>
<code><a href="/lite/api_docs/cc/class/tflite/error-reporter.html#classtflite_1_1_error_reporter">ErrorReporter</a> *</code>
</div>
</td>
</tr>
<tr>
<td>
<code><a href="#classtflite_1_1impl_1_1_flat_buffer_model_1a61f9fe2e4049ca564f9dbaaf17fbb8b4">initialized</a>() const </code>
</td>
<td>
<div>
<code>bool</code>
</div>
</td>
</tr>
<tr>
<td>
<code><a href="#classtflite_1_1impl_1_1_flat_buffer_model_1ad7af7815eee2bc17fa5e10845a56de5f">operator-&gt;</a>() const </code>
</td>
<td>
<div>
<code>const tflite::Model *</code>
</div>
</td>
</tr>
<tr>
<td>
<code><a href="#classtflite_1_1impl_1_1_flat_buffer_model_1a05628a6826dd832cd0b788ab0a6358ad">operator=</a>(const FlatBufferModel &amp;)=delete</code>
</td>
<td>
<div>
<code>FlatBufferModel &amp;</code>
</div>
</td>
</tr>
</table>
<h2>Public static functions</h2>
<div id="classtflite_1_1impl_1_1_flat_buffer_model_1a8c35c802badcd67b27013c7f4e5d69f2">
<h3>BuildFromAllocation</h3>
<pre class="prettyprint">std::unique_ptr&lt; FlatBufferModel &gt; BuildFromAllocation(
std::unique_ptr&lt; <a href="/lite/api_docs/cc/class/tflite/allocation.html#classtflite_1_1_allocation">Allocation</a> &gt; allocation,
<a href="/lite/api_docs/cc/class/tflite/error-reporter.html#classtflite_1_1_error_reporter">ErrorReporter</a> *error_reporter
)</pre>
<div>
<p>Builds a model directly from an allocation. </p>
<p>Ownership of the allocation is passed to the model, but the caller retains ownership of <code>error_reporter</code> and must ensure its lifetime is longer than the FlatBufferModel instance. Returns a nullptr in case of failure (e.g., the allocation is invalid). </p>
</div>
</div>
<div id="classtflite_1_1impl_1_1_flat_buffer_model_1aa0394bee07dcb66afcbffb1020f6b955">
<h3>BuildFromBuffer</h3>
<pre class="prettyprint">std::unique_ptr&lt; FlatBufferModel &gt; BuildFromBuffer(
const char *caller_owned_buffer,
size_t buffer_size,
<a href="/lite/api_docs/cc/class/tflite/error-reporter.html#classtflite_1_1_error_reporter">ErrorReporter</a> *error_reporter
)</pre>
<div>
<p>Builds a model based on a pre-loaded flatbuffer. </p>
<p>Caller retains ownership of the buffer and should keep it alive until the returned object is destroyed. Caller also retains ownership of <code>error_reporter</code> and must ensure its lifetime is longer than the FlatBufferModel instance. Returns a nullptr in case of failure. NOTE: this does NOT validate the buffer so it should NOT be called on invalid/untrusted input. Use VerifyAndBuildFromBuffer in that case </p>
</div>
</div>
<div id="classtflite_1_1impl_1_1_flat_buffer_model_1a66f82c70621340376720208507d6d91d">
<h3>BuildFromFile</h3>
<pre class="prettyprint">std::unique_ptr&lt; FlatBufferModel &gt; BuildFromFile(
const char *filename,
<a href="/lite/api_docs/cc/class/tflite/error-reporter.html#classtflite_1_1_error_reporter">ErrorReporter</a> *error_reporter
)</pre>
<div>
<p>Builds a model based on a file. </p>
<p>Caller retains ownership of <code>error_reporter</code> and must ensure its lifetime is longer than the FlatBufferModel instance. Returns a nullptr in case of failure. </p>
</div>
</div>
<div id="classtflite_1_1impl_1_1_flat_buffer_model_1a1b1d1c28f251321fcafd9ba8ae04e14f">
<h3>BuildFromModel</h3>
<pre class="prettyprint">std::unique_ptr&lt; FlatBufferModel &gt; BuildFromModel(
const tflite::Model *caller_owned_model_spec,
<a href="/lite/api_docs/cc/class/tflite/error-reporter.html#classtflite_1_1_error_reporter">ErrorReporter</a> *error_reporter
)</pre>
<div>
<p>Builds a model directly from a flatbuffer pointer Caller retains ownership of the buffer and should keep it alive until the returned object is destroyed. </p>
<p>Caller retains ownership of <code>error_reporter</code> and must ensure its lifetime is longer than the FlatBufferModel instance. Returns a nullptr in case of failure. </p>
</div>
</div>
<div id="classtflite_1_1impl_1_1_flat_buffer_model_1a8f959451f3bc0758fb89a51c1dd15547">
<h3>ByteConvertModel</h3>
<pre class="prettyprint">std::unique_ptr&lt; FlatBufferModel &gt; ByteConvertModel(
std::unique_ptr&lt; FlatBufferModel &gt; model,
<a href="/lite/api_docs/cc/class/tflite/error-reporter.html#classtflite_1_1_error_reporter">ErrorReporter</a> *error_reporter
)</pre>
<div>
<p>Convert the TFLite buffers field between LE and BE format in a FlatBufferModel which is not empty and return the converted instance. </p>
</div>
</div>
<div id="classtflite_1_1impl_1_1_flat_buffer_model_1a29738923249836d30c0a9bc1000e0641">
<h3>ByteSwapBuffer</h3>
<pre class="prettyprint">void ByteSwapBuffer(
int8_t tensor_type,
size_t buffer_size,
uint8_t *buffer
)</pre>
<div>
<p>Byte swap a constant buffer in place. </p>
</div>
</div>
<div id="classtflite_1_1impl_1_1_flat_buffer_model_1a45f26e7052b972a11c520cfb3d0f6a94">
<h3>ByteSwapFlatBufferModel</h3>
<pre class="prettyprint">std::unique_ptr&lt; FlatBufferModel &gt; ByteSwapFlatBufferModel(
std::unique_ptr&lt; FlatBufferModel &gt; model,
<a href="/lite/api_docs/cc/class/tflite/error-reporter.html#classtflite_1_1_error_reporter">ErrorReporter</a> *error_reporter
)</pre>
<div>
<p>Byte Swap the TFLite buffers field in a FlatBufferModel and return the swapped instance. </p>
</div>
</div>
<div id="classtflite_1_1impl_1_1_flat_buffer_model_1ab92e054440ffbdafb7c19151b5f81b17">
<h3>ByteSwapSerializedModel</h3>
<pre class="prettyprint">void ByteSwapSerializedModel(
std::string *serialized_model
)</pre>
<div>
<p>Byte Swap the serialized String of a TFLite model in place. </p>
</div>
</div>
<div id="classtflite_1_1impl_1_1_flat_buffer_model_1a4da359bffdbe229b72a2642f5f27c3d7">
<h3>ByteSwapTFLiteModel</h3>
<pre class="prettyprint">void ByteSwapTFLiteModel(
const tflite::Model *tfl_model
)</pre>
<div>
<p>Byte swap the buffers field of a TFLite Model instance in place. </p>
</div>
</div>
<div id="classtflite_1_1impl_1_1_flat_buffer_model_1ae81b10e1496884af894f4d6ee0e1a17b">
<h3>ByteSwapTFLiteModelT</h3>
<pre class="prettyprint">void ByteSwapTFLiteModelT(
tflite::ModelT *tfl_modelt
)</pre>
<div>
<p>Byte swap the buffers field of a TFLite ModelT instance in place. </p>
</div>
</div>
<div id="classtflite_1_1impl_1_1_flat_buffer_model_1ae596a5f76ddfc906fed835a6bfa7f6e8">
<h3>ReadAllMetadata</h3>
<pre class="prettyprint">std::map&lt; std::string, std::string &gt; ReadAllMetadata(
const ::tflite::Model *model
)</pre>
<div></div>
</div>
<div id="classtflite_1_1impl_1_1_flat_buffer_model_1ab81c2685e53304944dab7dcbedfa90dd">
<h3>VerifyAndBuildFromAllocation</h3>
<pre class="prettyprint">std::unique_ptr&lt; FlatBufferModel &gt; VerifyAndBuildFromAllocation(
std::unique_ptr&lt; <a href="/lite/api_docs/cc/class/tflite/allocation.html#classtflite_1_1_allocation">Allocation</a> &gt; allocation,
TfLiteVerifier *extra_verifier,
<a href="/lite/api_docs/cc/class/tflite/error-reporter.html#classtflite_1_1_error_reporter">ErrorReporter</a> *error_reporter
)</pre>
<div>
<p>Verifies whether the content of the allocation is legit, then builds a model based on the provided allocation. </p>
<p>The extra_verifier argument is an additional optional verifier for the buffer. By default, we always check with tflite::VerifyModelBuffer. If extra_verifier is supplied, the buffer is checked against the extra_verifier after the check against tflite::VerifyModelBuilder. Ownership of the allocation is passed to the model, but the caller retains ownership of <code>error_reporter</code> and must ensure its lifetime is longer than the FlatBufferModel instance. Returns a nullptr in case of failure. </p>
</div>
</div>
<div id="classtflite_1_1impl_1_1_flat_buffer_model_1a75c22976a1948281c88cbcb22c016e75">
<h3>VerifyAndBuildFromBuffer</h3>
<pre class="prettyprint">std::unique_ptr&lt; FlatBufferModel &gt; VerifyAndBuildFromBuffer(
const char *caller_owned_buffer,
size_t buffer_size,
TfLiteVerifier *extra_verifier,
<a href="/lite/api_docs/cc/class/tflite/error-reporter.html#classtflite_1_1_error_reporter">ErrorReporter</a> *error_reporter
)</pre>
<div>
<p>Verifies whether the content of the buffer is legit, then builds a model based on the pre-loaded flatbuffer. </p>
<p>The extra_verifier argument is an additional optional verifier for the buffer. By default, we always check with tflite::VerifyModelBuffer. If extra_verifier is supplied, the buffer is checked against the extra_verifier after the check against tflite::VerifyModelBuilder. The caller retains ownership of the buffer and should keep it alive until the returned object is destroyed. Caller retains ownership of <code>error_reporter</code> and must ensure its lifetime is longer than the FlatBufferModel instance. Returns a nullptr in case of failure. </p>
</div>
</div>
<div id="classtflite_1_1impl_1_1_flat_buffer_model_1aa3fb7e8581e21887e884529c4b66dcb6">
<h3>VerifyAndBuildFromFile</h3>
<pre class="prettyprint">std::unique_ptr&lt; FlatBufferModel &gt; VerifyAndBuildFromFile(
const char *filename,
TfLiteVerifier *extra_verifier,
<a href="/lite/api_docs/cc/class/tflite/error-reporter.html#classtflite_1_1_error_reporter">ErrorReporter</a> *error_reporter
)</pre>
<div>
<p>Verifies whether the content of the file is legit, then builds a model based on the file. </p>
<p>The extra_verifier argument is an additional optional verifier for the file contents. By default, we always check with tflite::VerifyModelBuffer. If extra_verifier is supplied, the file contents is also checked against the extra_verifier after the check against tflite::VerifyModelBuilder. Caller retains ownership of <code>error_reporter</code> and must ensure its lifetime is longer than the FlatBufferModel instance. Returns a nullptr in case of failure. </p>
</div>
</div>
<h2>Public functions</h2>
<div id="classtflite_1_1impl_1_1_flat_buffer_model_1a79091666372a065029f80542d0f76dcd">
<h3>CheckModelIdentifier</h3>
<pre class="prettyprint">bool CheckModelIdentifier() const </pre>
<div>
<p>Returns true if the model identifier is correct (otherwise false and reports an error). </p>
</div>
</div>
<div id="classtflite_1_1impl_1_1_flat_buffer_model_1a00aa20b6f40d08c042aad316b9306df3">
<h3>FlatBufferModel</h3>
<pre class="prettyprint"> FlatBufferModel(
const FlatBufferModel &amp;
)=delete</pre>
<div></div>
</div>
<div id="classtflite_1_1impl_1_1_flat_buffer_model_1a9e97c601aad103c768a797ae6bd30c9b">
<h3>GetMinimumRuntime</h3>
<pre class="prettyprint">std::string GetMinimumRuntime() const </pre>
<div></div>
</div>
<div id="classtflite_1_1impl_1_1_flat_buffer_model_1ae7314ca1da43d94b0de130331239330a">
<h3>GetModel</h3>
<pre class="prettyprint">const tflite::Model * GetModel() const </pre>
<div></div>
</div>
<div id="classtflite_1_1impl_1_1_flat_buffer_model_1a8e23634cdfe9c6a0a482439793216734">
<h3>ReadAllMetadata</h3>
<pre class="prettyprint">std::map&lt; std::string, std::string &gt; ReadAllMetadata() const </pre>
<div></div>
</div>
<div id="classtflite_1_1impl_1_1_flat_buffer_model_1ae9576f8f03a5c5f0a8111053b325fa91">
<h3>ValidateModelBuffers</h3>
<pre class="prettyprint">void ValidateModelBuffers(
<a href="/lite/api_docs/cc/class/tflite/error-reporter.html#classtflite_1_1_error_reporter">ErrorReporter</a> *error_reporter
)</pre>
<div></div>
</div>
<div id="classtflite_1_1impl_1_1_flat_buffer_model_1aa578f6bd19c0b413ca59e4f1953a022d">
<h3>allocation</h3>
<pre class="prettyprint">const <a href="/lite/api_docs/cc/class/tflite/allocation.html#classtflite_1_1_allocation">Allocation</a> * allocation() const </pre>
<div></div>
</div>
<div id="classtflite_1_1impl_1_1_flat_buffer_model_1a9cd2cfeb5cb724c238472fa2b7918028">
<h3>error_reporter</h3>
<pre class="prettyprint"><a href="/lite/api_docs/cc/class/tflite/error-reporter.html#classtflite_1_1_error_reporter">ErrorReporter</a> * error_reporter() const </pre>
<div></div>
</div>
<div id="classtflite_1_1impl_1_1_flat_buffer_model_1a61f9fe2e4049ca564f9dbaaf17fbb8b4">
<h3>initialized</h3>
<pre class="prettyprint">bool initialized() const </pre>
<div></div>
</div>
<div id="classtflite_1_1impl_1_1_flat_buffer_model_1ad7af7815eee2bc17fa5e10845a56de5f">
<h3>operator-&gt;</h3>
<pre class="prettyprint">const tflite::Model * operator-&gt;() const </pre>
<div></div>
</div>
<div id="classtflite_1_1impl_1_1_flat_buffer_model_1a05628a6826dd832cd0b788ab0a6358ad">
<h3>operator=</h3>
<pre class="prettyprint">FlatBufferModel &amp; operator=(
const FlatBufferModel &amp;
)=delete</pre>
<div></div>
</div>
<div id="classtflite_1_1impl_1_1_flat_buffer_model_1a8525ac7d8f97198012f53533264f25f1">
<h3>~FlatBufferModel</h3>
<pre class="prettyprint"> ~FlatBufferModel()</pre>
<div></div>
</div>
</body>
</html>
@@ -0,0 +1,232 @@
<!DOCTYPE html>
<html devsite="">
<head>
<title>tflite::impl::InterpreterBuilder Class Reference</title>
<meta name="page_type" value="reference"/>
<meta content="reference" name="page_type"/></head>
<body>
<div id="top"><!-- do not remove this div --></div>
<h1>tflite::<wbr/>impl::<wbr/>InterpreterBuilder</h1>
<h2>Summary</h2>
<aside class="note">
<b>Note:</b><code>tflite::impl::InterpreterBuilder</code> class is implementation details. Users should reference it as <code>tflite::InterpreterBuilder</code> instead.</p>
</aside>
<table class="constructors responsive">
<tr>
<th colspan="2">
<h3>Constructors and Destructors</h3>
</th>
</tr>
<tr>
<td colspan="2">
<code><a href="#classtflite_1_1impl_1_1_interpreter_builder_1a3f1ecd25f38ae0c4145a562dcaaa6254">InterpreterBuilder</a>(const FlatBufferModel &amp; model, const <a href="/lite/api_docs/cc/class/tflite/op-resolver.html#classtflite_1_1_op_resolver">OpResolver</a> &amp; op_resolver, const InterpreterOptions *options_experimental)</code>
<br/>
<div>For this constructor, the <a href="/lite/api_docs/cc/class/tflite/error-reporter.html#classtflite_1_1_error_reporter">ErrorReporter</a> will be extracted from the FlatBufferModel. </div>
</td>
</tr>
<tr>
<td colspan="2">
<code><a href="#classtflite_1_1impl_1_1_interpreter_builder_1a672da7972a26dc5619d7f25f2a6a1b4d">InterpreterBuilder</a>(const ::tflite::Model *model, const <a href="/lite/api_docs/cc/class/tflite/op-resolver.html#classtflite_1_1_op_resolver">OpResolver</a> &amp; op_resolver, <a href="/lite/api_docs/cc/class/tflite/error-reporter.html#classtflite_1_1_error_reporter">ErrorReporter</a> *error_reporter, const InterpreterOptions *options_experimental)</code>
<br/>
<div>Builds an interpreter given only the raw flatbuffer Model object (instead of a FlatBufferModel). </div>
</td>
</tr>
<tr>
<td colspan="2">
<code><a href="#classtflite_1_1impl_1_1_interpreter_builder_1afe2f489f51bf3398bcc3cf91f0f0b5d6">InterpreterBuilder</a>(const InterpreterBuilder &amp;)</code>
<br/>
</td>
</tr>
<tr>
<td colspan="2">
<code><a href="#classtflite_1_1impl_1_1_interpreter_builder_1ad58b1346e6dea8205edd0122d3feffb6">~InterpreterBuilder</a>()</code>
<br/>
</td>
</tr>
</table>
<table class="methods responsive">
<tr>
<th colspan="2">
<h3>Public functions</h3>
</th>
</tr>
<tr>
<td>
<code><a href="#classtflite_1_1impl_1_1_interpreter_builder_1ae95b984f4161de8ebb0f72dde8d82552">AddDelegate</a>(TfLiteDelegate *delegate)</code>
</td>
<td>
<div>
<code>void</code>
</div>
<div>Any delegates added with AddDelegate will be applied to the Interpreter generated by operator(), in the order that they were added. </div>
</td>
</tr>
<tr>
<td>
<code><a href="#classtflite_1_1impl_1_1_interpreter_builder_1a04a03f40adb2cf98096bafac216088d2">AddDelegate</a>(TfLiteOpaqueDelegateStruct *opaque_delegate)</code>
</td>
<td>
<div>
<code>void</code>
</div>
</td>
</tr>
<tr>
<td>
<code><a href="#classtflite_1_1impl_1_1_interpreter_builder_1a6d3ddb354f27e03adc203388d3cbd2d5">SetNumThreads</a>(int num_threads)</code>
</td>
<td>
<div>
<code>TfLiteStatus</code>
</div>
<div>Sets the number of CPU threads to use for the interpreter. </div>
</td>
</tr>
<tr>
<td>
<code><a href="#classtflite_1_1impl_1_1_interpreter_builder_1a8a395b526bb5fdbd126d76e6c941a22d">SetTelemetryProfiler</a>(std::unique_ptr&lt; telemetry::TelemetryProfiler &gt; profiler)</code>
</td>
<td>
<div>
<code>void</code>
</div>
</td>
</tr>
<tr>
<td>
<code><a href="#classtflite_1_1impl_1_1_interpreter_builder_1affb1f0b3d91c5856c746e04f276e403d">operator()</a>(std::unique_ptr&lt; <a href="/lite/api_docs/cc/namespace/tflite.html#namespacetflite_1a2d6d829bce5eba5b241987ca5b4f0f40">Interpreter</a> &gt; *interpreter)</code>
</td>
<td>
<div>
<code>TfLiteStatus</code>
</div>
<div>Builds an interpreter and stores it in <code>*interpreter</code>. </div>
</td>
</tr>
<tr>
<td>
<code><a href="#classtflite_1_1impl_1_1_interpreter_builder_1a9f501d83e33b7f39cfbb5dbf37be0480">operator()</a>(std::unique_ptr&lt; <a href="/lite/api_docs/cc/namespace/tflite.html#namespacetflite_1a2d6d829bce5eba5b241987ca5b4f0f40">Interpreter</a> &gt; *interpreter, int num_threads)</code>
</td>
<td>
<div>
<code>TfLiteStatus</code>
</div>
<div>Same as above, but also sets the number of CPU threads to use (overriding any previous call to SetNumThreads). </div>
</td>
</tr>
<tr>
<td>
<code><a href="#classtflite_1_1impl_1_1_interpreter_builder_1a6abdd1e4d36ef889ad5e96e766220a42">operator=</a>(const <a href="/lite/api_docs/cc/namespace/tflite.html#namespacetflite_1a7be86dcd93a5c9d5542ae31a62506cd4">InterpreterBuilder</a> &amp;)=delete</code>
</td>
<td>
<div>
<code><a href="/lite/api_docs/cc/namespace/tflite.html#namespacetflite_1a7be86dcd93a5c9d5542ae31a62506cd4">InterpreterBuilder</a> &amp;</code>
</div>
</td>
</tr>
</table>
<h2>Public functions</h2>
<div id="classtflite_1_1impl_1_1_interpreter_builder_1ae95b984f4161de8ebb0f72dde8d82552">
<h3>AddDelegate</h3>
<pre class="prettyprint">void AddDelegate(
TfLiteDelegate *delegate
)</pre>
<div>
<p>Any delegates added with AddDelegate will be applied to the Interpreter generated by operator(), in the order that they were added. </p>
<p>(The delegate parameter passed to AddDelegate should be non-null, otherwise an error will be reported, and the call to AddDelegate will have no other effect.) The lifetime of the delegate must be at least as long as the lifetime of any Interpreter generated by this InterpreterBuilder. </p>
</div>
</div>
<div id="classtflite_1_1impl_1_1_interpreter_builder_1a04a03f40adb2cf98096bafac216088d2">
<h3>AddDelegate</h3>
<pre class="prettyprint">void AddDelegate(
TfLiteOpaqueDelegateStruct *opaque_delegate
)</pre>
<div></div>
</div>
<div id="classtflite_1_1impl_1_1_interpreter_builder_1a3f1ecd25f38ae0c4145a562dcaaa6254">
<h3>InterpreterBuilder</h3>
<pre class="prettyprint"> InterpreterBuilder(
const FlatBufferModel &amp; model,
const <a href="/lite/api_docs/cc/class/tflite/op-resolver.html#classtflite_1_1_op_resolver">OpResolver</a> &amp; op_resolver,
const InterpreterOptions *options_experimental
)</pre>
<div>
<p>For this constructor, the <a href="/lite/api_docs/cc/class/tflite/error-reporter.html#classtflite_1_1_error_reporter">ErrorReporter</a> will be extracted from the FlatBufferModel. </p>
<p><code>options</code> object is copied during construction. So caller can release it </p>
</div>
</div>
<div id="classtflite_1_1impl_1_1_interpreter_builder_1a672da7972a26dc5619d7f25f2a6a1b4d">
<h3>InterpreterBuilder</h3>
<pre class="prettyprint"> InterpreterBuilder(
const ::tflite::Model *model,
const <a href="/lite/api_docs/cc/class/tflite/op-resolver.html#classtflite_1_1_op_resolver">OpResolver</a> &amp; op_resolver,
<a href="/lite/api_docs/cc/class/tflite/error-reporter.html#classtflite_1_1_error_reporter">ErrorReporter</a> *error_reporter,
const InterpreterOptions *options_experimental
)</pre>
<div>
<p>Builds an interpreter given only the raw flatbuffer Model object (instead of a FlatBufferModel). </p>
<p>Mostly used for testing. If <code>error_reporter</code> is null, then DefaultErrorReporter() is used. <code>options</code> object is copied during construction. So caller can release it </p>
</div>
</div>
<div id="classtflite_1_1impl_1_1_interpreter_builder_1afe2f489f51bf3398bcc3cf91f0f0b5d6">
<h3>InterpreterBuilder</h3>
<pre class="prettyprint"> InterpreterBuilder(
const InterpreterBuilder &amp;
)=delete</pre>
<div></div>
</div>
<div id="classtflite_1_1impl_1_1_interpreter_builder_1a6d3ddb354f27e03adc203388d3cbd2d5">
<h3>SetNumThreads</h3>
<pre class="prettyprint">TfLiteStatus SetNumThreads(
int num_threads
)</pre>
<div>
<p>Sets the number of CPU threads to use for the interpreter. </p>
<p>Returns kTfLiteOk on success, kTfLiteError on error. </p>
</div>
</div>
<div id="classtflite_1_1impl_1_1_interpreter_builder_1a8a395b526bb5fdbd126d76e6c941a22d">
<h3>SetTelemetryProfiler</h3>
<pre class="prettyprint">void SetTelemetryProfiler(
std::unique_ptr&lt; telemetry::TelemetryProfiler &gt; profiler
)</pre>
<div></div>
</div>
<div id="classtflite_1_1impl_1_1_interpreter_builder_1affb1f0b3d91c5856c746e04f276e403d">
<h3>operator()</h3>
<pre class="prettyprint">TfLiteStatus operator()(
std::unique_ptr&lt; <a href="/lite/api_docs/cc/namespace/tflite.html#namespacetflite_1a2d6d829bce5eba5b241987ca5b4f0f40">Interpreter</a> &gt; *interpreter
)</pre>
<div>
<p>Builds an interpreter and stores it in <code>*interpreter</code>. </p>
<p>On success, returns kTfLiteOk and sets <code>*interpreter</code> to a valid Interpreter. On failure, returns an error status and sets <code>*interpreter</code> to nullptr. </p>
</div>
</div>
<div id="classtflite_1_1impl_1_1_interpreter_builder_1a9f501d83e33b7f39cfbb5dbf37be0480">
<h3>operator()</h3>
<pre class="prettyprint">TfLiteStatus operator()(
std::unique_ptr&lt; <a href="/lite/api_docs/cc/namespace/tflite.html#namespacetflite_1a2d6d829bce5eba5b241987ca5b4f0f40">Interpreter</a> &gt; *interpreter,
int num_threads
)</pre>
<div>
<p>Same as above, but also sets the number of CPU threads to use (overriding any previous call to SetNumThreads). </p>
<p>Deprecated: use the SetNumThreads method instead. </p>
</div>
</div>
<div id="classtflite_1_1impl_1_1_interpreter_builder_1a6abdd1e4d36ef889ad5e96e766220a42">
<h3>operator=</h3>
<pre class="prettyprint"><a href="/lite/api_docs/cc/namespace/tflite.html#namespacetflite_1a7be86dcd93a5c9d5542ae31a62506cd4">InterpreterBuilder</a> &amp; operator=(
const <a href="/lite/api_docs/cc/namespace/tflite.html#namespacetflite_1a7be86dcd93a5c9d5542ae31a62506cd4">InterpreterBuilder</a> &amp;
)=delete</pre>
<div></div>
</div>
<div id="classtflite_1_1impl_1_1_interpreter_builder_1ad58b1346e6dea8205edd0122d3feffb6">
<h3>~InterpreterBuilder</h3>
<pre class="prettyprint"> ~InterpreterBuilder()</pre>
<div></div>
</div>
</body>
</html>
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,286 @@
<!DOCTYPE html>
<html devsite="">
<head>
<title>tflite::MMAPAllocation Class Reference</title>
<meta name="page_type" value="reference"/>
<meta content="reference" name="page_type"/></head>
<body><div id="top"><!-- do not remove this div --></div><h1>tflite::<wbr/>MMAPAllocation</h1><code>#include &lt;allocation.h&gt;</code><p>Note that not all platforms support MMAP-based allocation. </p><h2>Summary</h2><p>Use <code>IsSupported()</code> to check. </p><h3>Inheritance</h3>Inherits from: <a href="/lite/api_docs/cc/class/tflite/allocation">tflite::Allocation</a><table class="constructors responsive">
<tr>
<th colspan="2">
<h3>Constructors and Destructors</h3>
</th>
</tr>
<tr>
<td colspan="2">
<code><a href="#classtflite_1_1_m_m_a_p_allocation_1acfb9fdd33f19fe08872f14e63618f31d">MMAPAllocation</a>(const char *filename, <a href="/lite/api_docs/cc/class/tflite/error-reporter.html#classtflite_1_1_error_reporter">ErrorReporter</a> *error_reporter)</code>
<br/>
<div>Loads and maps the provided file to a memory region. </div>
</td>
</tr>
<tr>
<td colspan="2">
<code><a href="#classtflite_1_1_m_m_a_p_allocation_1af72bf81b83867751c29d0e75603d1caf">MMAPAllocation</a>(int fd, <a href="/lite/api_docs/cc/class/tflite/error-reporter.html#classtflite_1_1_error_reporter">ErrorReporter</a> *error_reporter)</code>
<br/>
<div>Maps the provided file descriptor to a memory region. </div>
</td>
</tr>
<tr>
<td colspan="2">
<code><a href="#classtflite_1_1_m_m_a_p_allocation_1a390a6e0a6b423436886ec122923323ce">MMAPAllocation</a>(int fd, size_t offset, size_t length, <a href="/lite/api_docs/cc/class/tflite/error-reporter.html#classtflite_1_1_error_reporter">ErrorReporter</a> *error_reporter)</code>
<br/>
<div>Maps the provided file descriptor, with the given offset and length (both in bytes), to a memory region. </div>
</td>
</tr>
<tr>
<td colspan="2">
<code><a href="#classtflite_1_1_m_m_a_p_allocation_1a724a1271605a5219a1f782138b51e872">~MMAPAllocation</a>()</code>
<br/>
</td>
</tr>
</table><table class="properties responsive">
<tr>
<th colspan="2">
<h3>Protected attributes</h3>
</th>
</tr>
<tr>
<td>
<code><a href="#classtflite_1_1_m_m_a_p_allocation_1acf9b343574e71ae396bc266d2fdc3bce">buffer_size_bytes_</a> = 0</code>
</td>
<td>
<div>
<code>size_t</code>
</div>
</td>
</tr>
<tr>
<td>
<code><a href="#classtflite_1_1_m_m_a_p_allocation_1a4720771013a16b8aecd350fcc8af4a86">mmap_fd_</a> = -1</code>
</td>
<td>
<div>
<code>int</code>
</div>
</td>
</tr>
<tr>
<td>
<code><a href="#classtflite_1_1_m_m_a_p_allocation_1a57949c0d6f4606eb7b4147bf6844791e">mmapped_buffer_</a></code>
</td>
<td>
<div>
<code>const void *</code>
</div>
</td>
</tr>
<tr>
<td>
<code><a href="#classtflite_1_1_m_m_a_p_allocation_1aab66abf26d41bf9874c47a88d3e82f19">offset_in_buffer_</a> = 0</code>
</td>
<td>
<div>
<code>size_t</code>
</div>
</td>
</tr>
<tr>
<td>
<code><a href="#classtflite_1_1_m_m_a_p_allocation_1a69941c27fae1886d4001b9d0683bb3fa">offset_of_buffer_in_file_</a> = 0</code>
</td>
<td>
<div>
<code>size_t</code>
</div>
</td>
</tr>
</table><table class="methods responsive">
<tr>
<th colspan="2">
<h3>Public functions</h3>
</th>
</tr>
<tr>
<td>
<code><a href="#classtflite_1_1_m_m_a_p_allocation_1a43eb45a4d239fdd780d290a2731a9995">base</a>() const override</code>
</td>
<td>
<div>
<code>virtual const void *</code>
</div>
<div>Base pointer of this allocation. </div>
</td>
</tr>
<tr>
<td>
<code><a href="#classtflite_1_1_m_m_a_p_allocation_1a4921c8aa477f8f02f39414c975ec745e">bytes</a>() const override</code>
</td>
<td>
<div>
<code>virtual size_t</code>
</div>
<div>Size in bytes of the allocation. </div>
</td>
</tr>
<tr>
<td>
<code><a href="#classtflite_1_1_m_m_a_p_allocation_1a53f6934b487782b4c5fea8f496b8f6eb">fd</a>() const </code>
</td>
<td>
<div>
<code>int</code>
</div>
</td>
</tr>
<tr>
<td>
<code><a href="#classtflite_1_1_m_m_a_p_allocation_1a670ddca35f6472197bdb996f274f9c84">mmapped_buffer</a>() const </code>
</td>
<td>
<div>
<code>const void *</code>
</div>
</td>
</tr>
<tr>
<td>
<code><a href="#classtflite_1_1_m_m_a_p_allocation_1a440183d0b5f82f6aa385c7ca3bf3d6a9">mmapped_buffer_offset_in_file</a>() const </code>
</td>
<td>
<div>
<code>size_t</code>
</div>
</td>
</tr>
<tr>
<td>
<code><a href="#classtflite_1_1_m_m_a_p_allocation_1a11929d39b9b8e17348e9e31e319d6991">mmapped_buffer_size</a>() const </code>
</td>
<td>
<div>
<code>size_t</code>
</div>
</td>
</tr>
<tr>
<td>
<code><a href="#classtflite_1_1_m_m_a_p_allocation_1a51e5b1b20a087c6be03caaf42cdc2ba2">valid</a>() const override</code>
</td>
<td>
<div>
<code>virtual bool</code>
</div>
<div>Whether the allocation is valid. </div>
</td>
</tr>
</table><table class="methods responsive">
<tr>
<th colspan="2">
<h3>Public static functions</h3>
</th>
</tr>
<tr>
<td>
<code><a href="#classtflite_1_1_m_m_a_p_allocation_1a3418fb63069005bd3f08595fd1891e7c">IsSupported</a>()</code>
</td>
<td>
<div>
<code>bool</code>
</div>
</td>
</tr>
</table><h2>Protected attributes</h2><div id="classtflite_1_1_m_m_a_p_allocation_1acf9b343574e71ae396bc266d2fdc3bce">
<h3>buffer_size_bytes_</h3>
<pre class="prettyprint">size_t buffer_size_bytes_ = 0</pre>
<div></div>
</div><div id="classtflite_1_1_m_m_a_p_allocation_1a4720771013a16b8aecd350fcc8af4a86">
<h3>mmap_fd_</h3>
<pre class="prettyprint">int mmap_fd_ = -1</pre>
<div></div>
</div><div id="classtflite_1_1_m_m_a_p_allocation_1a57949c0d6f4606eb7b4147bf6844791e">
<h3>mmapped_buffer_</h3>
<pre class="prettyprint">const void * mmapped_buffer_</pre>
<div></div>
</div><div id="classtflite_1_1_m_m_a_p_allocation_1aab66abf26d41bf9874c47a88d3e82f19">
<h3>offset_in_buffer_</h3>
<pre class="prettyprint">size_t offset_in_buffer_ = 0</pre>
<div></div>
</div><div id="classtflite_1_1_m_m_a_p_allocation_1a69941c27fae1886d4001b9d0683bb3fa">
<h3>offset_of_buffer_in_file_</h3>
<pre class="prettyprint">size_t offset_of_buffer_in_file_ = 0</pre>
<div></div>
</div><h2>Public functions</h2><div id="classtflite_1_1_m_m_a_p_allocation_1acfb9fdd33f19fe08872f14e63618f31d">
<h3>MMAPAllocation</h3>
<pre class="prettyprint"> MMAPAllocation(
const char *filename,
<a href="/lite/api_docs/cc/class/tflite/error-reporter.html#classtflite_1_1_error_reporter">ErrorReporter</a> *error_reporter
)</pre>
<div>
<p>Loads and maps the provided file to a memory region. </p>
</div>
</div><div id="classtflite_1_1_m_m_a_p_allocation_1af72bf81b83867751c29d0e75603d1caf">
<h3>MMAPAllocation</h3>
<pre class="prettyprint"> MMAPAllocation(
int fd,
<a href="/lite/api_docs/cc/class/tflite/error-reporter.html#classtflite_1_1_error_reporter">ErrorReporter</a> *error_reporter
)</pre>
<div>
<p>Maps the provided file descriptor to a memory region. </p>
<p>Note: The provided file descriptor will be dup'ed for usage; the caller retains ownership of the provided descriptor and should close accordingly. </p>
</div>
</div><div id="classtflite_1_1_m_m_a_p_allocation_1a390a6e0a6b423436886ec122923323ce">
<h3>MMAPAllocation</h3>
<pre class="prettyprint"> MMAPAllocation(
int fd,
size_t offset,
size_t length,
<a href="/lite/api_docs/cc/class/tflite/error-reporter.html#classtflite_1_1_error_reporter">ErrorReporter</a> *error_reporter
)</pre>
<div>
<p>Maps the provided file descriptor, with the given offset and length (both in bytes), to a memory region. </p>
<p>Note: The provided file descriptor will be dup'ed for usage; the caller retains ownership of the provided descriptor and should close accordingly. </p>
</div>
</div><div id="classtflite_1_1_m_m_a_p_allocation_1a43eb45a4d239fdd780d290a2731a9995">
<h3>base</h3>
<pre class="prettyprint">virtual const void * base() const override</pre>
<div>
<p>Base pointer of this allocation. </p>
</div>
</div><div id="classtflite_1_1_m_m_a_p_allocation_1a4921c8aa477f8f02f39414c975ec745e">
<h3>bytes</h3>
<pre class="prettyprint">virtual size_t bytes() const override</pre>
<div>
<p>Size in bytes of the allocation. </p>
</div>
</div><div id="classtflite_1_1_m_m_a_p_allocation_1a53f6934b487782b4c5fea8f496b8f6eb">
<h3>fd</h3>
<pre class="prettyprint">int fd() const </pre>
<div></div>
</div><div id="classtflite_1_1_m_m_a_p_allocation_1a670ddca35f6472197bdb996f274f9c84">
<h3>mmapped_buffer</h3>
<pre class="prettyprint">const void * mmapped_buffer() const </pre>
<div></div>
</div><div id="classtflite_1_1_m_m_a_p_allocation_1a440183d0b5f82f6aa385c7ca3bf3d6a9">
<h3>mmapped_buffer_offset_in_file</h3>
<pre class="prettyprint">size_t mmapped_buffer_offset_in_file() const </pre>
<div></div>
</div><div id="classtflite_1_1_m_m_a_p_allocation_1a11929d39b9b8e17348e9e31e319d6991">
<h3>mmapped_buffer_size</h3>
<pre class="prettyprint">size_t mmapped_buffer_size() const </pre>
<div></div>
</div><div id="classtflite_1_1_m_m_a_p_allocation_1a51e5b1b20a087c6be03caaf42cdc2ba2">
<h3>valid</h3>
<pre class="prettyprint">virtual bool valid() const override</pre>
<div>
<p>Whether the allocation is valid. </p>
</div>
</div><div id="classtflite_1_1_m_m_a_p_allocation_1a724a1271605a5219a1f782138b51e872">
<h3>~MMAPAllocation</h3>
<pre class="prettyprint"> ~MMAPAllocation() override</pre>
<div></div>
</div><h2>Public static functions</h2><div id="classtflite_1_1_m_m_a_p_allocation_1a3418fb63069005bd3f08595fd1891e7c">
<h3>IsSupported</h3>
<pre class="prettyprint">bool IsSupported()</pre>
<div></div>
</div></body>
</html>
@@ -0,0 +1,91 @@
<!DOCTYPE html>
<html devsite="">
<head>
<title>tflite::MemoryAllocation Class Reference</title>
<meta name="page_type" value="reference"/>
<meta content="reference" name="page_type"/></head>
<body><div id="top"><!-- do not remove this div --></div><h1>tflite::<wbr/>MemoryAllocation</h1><h2>Summary</h2><h3>Inheritance</h3>Inherits from: <a href="/lite/api_docs/cc/class/tflite/allocation">tflite::Allocation</a><table class="constructors responsive">
<tr>
<th colspan="2">
<h3>Constructors and Destructors</h3>
</th>
</tr>
<tr>
<td colspan="2">
<code><a href="#classtflite_1_1_memory_allocation_1a2a2ab9ef98db52da8b839494b6183980">MemoryAllocation</a>(const void *ptr, size_t num_bytes, <a href="/lite/api_docs/cc/class/tflite/error-reporter.html#classtflite_1_1_error_reporter">ErrorReporter</a> *error_reporter)</code>
<br/>
<div>Provides a (read-only) view of the provided buffer region as an allocation. </div>
</td>
</tr>
<tr>
<td colspan="2">
<code><a href="#classtflite_1_1_memory_allocation_1a38b7a626189b9350afc1893e36605e2e">~MemoryAllocation</a>()</code>
<br/>
</td>
</tr>
</table><table class="methods responsive">
<tr>
<th colspan="2">
<h3>Public functions</h3>
</th>
</tr>
<tr>
<td>
<code><a href="#classtflite_1_1_memory_allocation_1aa643eaa215ae9b11d8f725b5f5a7cfd9">base</a>() const override</code>
</td>
<td>
<div>
<code>const void *</code>
</div>
</td>
</tr>
<tr>
<td>
<code><a href="#classtflite_1_1_memory_allocation_1adb3bd9c85fb9fab1fe5afd5bbc482d28">bytes</a>() const override</code>
</td>
<td>
<div>
<code>size_t</code>
</div>
</td>
</tr>
<tr>
<td>
<code><a href="#classtflite_1_1_memory_allocation_1a4fac8b140960856b0d065269dcfb22f4">valid</a>() const override</code>
</td>
<td>
<div>
<code>bool</code>
</div>
</td>
</tr>
</table><h2>Public functions</h2><div id="classtflite_1_1_memory_allocation_1a2a2ab9ef98db52da8b839494b6183980">
<h3>MemoryAllocation</h3>
<pre class="prettyprint"> MemoryAllocation(
const void *ptr,
size_t num_bytes,
<a href="/lite/api_docs/cc/class/tflite/error-reporter.html#classtflite_1_1_error_reporter">ErrorReporter</a> *error_reporter
)</pre>
<div>
<p>Provides a (read-only) view of the provided buffer region as an allocation. </p>
<p>Note: The caller retains ownership of <code>ptr</code>, and must ensure it remains valid for the lifetime of the class instance. </p>
</div>
</div><div id="classtflite_1_1_memory_allocation_1aa643eaa215ae9b11d8f725b5f5a7cfd9">
<h3>base</h3>
<pre class="prettyprint">const void * base() const override</pre>
<div></div>
</div><div id="classtflite_1_1_memory_allocation_1adb3bd9c85fb9fab1fe5afd5bbc482d28">
<h3>bytes</h3>
<pre class="prettyprint">size_t bytes() const override</pre>
<div></div>
</div><div id="classtflite_1_1_memory_allocation_1a4fac8b140960856b0d065269dcfb22f4">
<h3>valid</h3>
<pre class="prettyprint">bool valid() const override</pre>
<div></div>
</div><div id="classtflite_1_1_memory_allocation_1a38b7a626189b9350afc1893e36605e2e">
<h3>~MemoryAllocation</h3>
<pre class="prettyprint"> ~MemoryAllocation() override</pre>
<div></div>
</div></body>
</html>
@@ -0,0 +1,279 @@
<!DOCTYPE html>
<html devsite="">
<head>
<title>tflite::MutableOpResolver Class Reference</title>
<meta name="page_type" value="reference"/>
<meta content="reference" name="page_type"/></head>
<body><div id="top"><!-- do not remove this div --></div><h1>tflite::<wbr/>MutableOpResolver</h1><code>#include &lt;mutable_op_resolver.h&gt;</code><p>An <a href="/lite/api_docs/cc/class/tflite/op-resolver.html#classtflite_1_1_op_resolver">OpResolver</a> that is mutable, also used as the op in gen_op_registration. </p><h2>Summary</h2><p>A typical usage: <a href="/lite/api_docs/cc/class/tflite/mutable-op-resolver.html#classtflite_1_1_mutable_op_resolver">MutableOpResolver</a> resolver; resolver.AddBuiltin(BuiltinOperator_ADD, Register_ADD()); resolver.AddCustom("CustomOp", Register_CUSTOM_OP()); InterpreterBuilder(model, resolver)(&amp;interpreter); </p><h3>Inheritance</h3>Inherits from: <a href="/lite/api_docs/cc/class/tflite/op-resolver">tflite::OpResolver</a><table class="properties responsive">
<tr>
<th colspan="2">
<h3>Protected attributes</h3>
</th>
</tr>
<tr>
<td>
<code><a href="#classtflite_1_1_mutable_op_resolver_1af5172db0315823b3a2660c50007d682e">delegate_creators_</a></code>
</td>
<td>
<div>
<code>TfLiteDelegateCreators</code>
</div>
<div>A vector of delegate creators to create optional delegates for resolving and handling ops in the flatbuffer model. </div>
</td>
</tr>
<tr>
<td>
<code><a href="#classtflite_1_1_mutable_op_resolver_1a64e217c827d1e46e93d43f7f43dd4bfe">may_directly_contain_user_defined_ops_</a> = false</code>
</td>
<td>
<div>
<code>bool</code>
</div>
<div>True if this <a href="/lite/api_docs/cc/class/tflite/op-resolver.html#classtflite_1_1_op_resolver">OpResolver</a> itself (as opposed to chained op resolvers registed with ChainOpResolver) may contain user defined ops. </div>
</td>
</tr>
<tr>
<td>
<code><a href="#classtflite_1_1_mutable_op_resolver_1a2cdfa779ceb472fe4ee44dddc95ac4cb">opaque_delegate_creators_</a></code>
</td>
<td>
<div>
<code>TfLiteOpaqueDelegateCreators</code>
</div>
<div>A vector of opaque delegate creators to create optional opaque delegates for resolving and handling ops in the flatbuffer model. </div>
</td>
</tr>
</table><table class="methods responsive">
<tr>
<th colspan="2">
<h3>Public functions</h3>
</th>
</tr>
<tr>
<td>
<code><a href="#classtflite_1_1_mutable_op_resolver_1aa5db2f00250d50a200cb11ef86da04de">AddAll</a>(const <a href="/lite/api_docs/cc/class/tflite/mutable-op-resolver.html#classtflite_1_1_mutable_op_resolver">MutableOpResolver</a> &amp; other)</code>
</td>
<td>
<div>
<code>void</code>
</div>
<div>Registers all operator versions supported by another <a href="/lite/api_docs/cc/class/tflite/mutable-op-resolver.html#classtflite_1_1_mutable_op_resolver">MutableOpResolver</a>. </div>
</td>
</tr>
<tr>
<td>
<code><a href="#classtflite_1_1_mutable_op_resolver_1ad323b1664b50a74a6b06d9b8bb150a67">AddBuiltin</a>(tflite::BuiltinOperator op, const TfLiteRegistration *registration, int version)</code>
</td>
<td>
<div>
<code>void</code>
</div>
<div>Registers the specified <code>version</code> of the specified builtin operator <code>op</code>. </div>
</td>
</tr>
<tr>
<td>
<code><a href="#classtflite_1_1_mutable_op_resolver_1afb9598566ed817f14e5bce63911087c4">AddBuiltin</a>(tflite::BuiltinOperator op, const TfLiteRegistration *registration, int min_version, int max_version)</code>
</td>
<td>
<div>
<code>void</code>
</div>
<div>Registers the specified version range (versions <code>min_version</code> to <code>max_version</code>, inclusive) of the specified builtin operator <code>op</code>. </div>
</td>
</tr>
<tr>
<td>
<code><a href="#classtflite_1_1_mutable_op_resolver_1a9c304aaaea9b949b7124adb8b91340c5">AddCustom</a>(const char *name, const TfLiteRegistration *registration, int version)</code>
</td>
<td>
<div>
<code>void</code>
</div>
<div>Registers the specified <code>version</code> of the specified builtin operator <code>op</code>. </div>
</td>
</tr>
<tr>
<td>
<code><a href="#classtflite_1_1_mutable_op_resolver_1a7154c1bad3d50421668d9d463dd8445b">AddCustom</a>(const char *name, const TfLiteRegistration *registration, int min_version, int max_version)</code>
</td>
<td>
<div>
<code>void</code>
</div>
<div>Registers the specified version range (versions <code>min_version</code> to <code>max_version</code>, inclusive) of the specified custom operator <code>name</code>. </div>
</td>
</tr>
<tr>
<td>
<code><a href="#classtflite_1_1_mutable_op_resolver_1aa594a32832292ae14993cbca04d8e8a4">FindOp</a>(tflite::BuiltinOperator op, int version) const override</code>
</td>
<td>
<div>
<code>virtual const TfLiteRegistration *</code>
</div>
<div>Finds the op registration for a builtin operator by enum code. </div>
</td>
</tr>
<tr>
<td>
<code><a href="#classtflite_1_1_mutable_op_resolver_1a8e5f9c21c7706f2ad899cc2e9f2d75d2">FindOp</a>(const char *op, int version) const override</code>
</td>
<td>
<div>
<code>virtual const TfLiteRegistration *</code>
</div>
<div>Finds the op registration of a custom operator by op name. </div>
</td>
</tr>
<tr>
<td>
<code><a href="#classtflite_1_1_mutable_op_resolver_1a1173e86e8a3244c39dc3de1ff657a8c1">GetDelegateCreators</a>() const final</code>
</td>
<td>
<div>
<code>virtual OpResolver::TfLiteDelegateCreators</code>
</div>
</td>
</tr>
<tr>
<td>
<code><a href="#classtflite_1_1_mutable_op_resolver_1ad7d6cf93ab0a5cfdde30f2f7e691707e">GetOpaqueDelegateCreators</a>() const final</code>
</td>
<td>
<div>
<code>virtual OpResolver::TfLiteOpaqueDelegateCreators</code>
</div>
</td>
</tr>
</table><table class="methods responsive">
<tr>
<th colspan="2">
<h3>Protected functions</h3>
</th>
</tr>
<tr>
<td>
<code><a href="#classtflite_1_1_mutable_op_resolver_1aadfe56e199481e8d1546a38ee770488b">ChainOpResolver</a>(const <a href="/lite/api_docs/cc/class/tflite/op-resolver.html#classtflite_1_1_op_resolver">OpResolver</a> *other)</code>
</td>
<td>
<div>
<code>void</code>
</div>
<div>Registers all operator versions supported by another <a href="/lite/api_docs/cc/class/tflite/op-resolver.html#classtflite_1_1_op_resolver">OpResolver</a>, except any already registered in this <a href="/lite/api_docs/cc/class/tflite/mutable-op-resolver.html#classtflite_1_1_mutable_op_resolver">MutableOpResolver</a>. </div>
</td>
</tr>
</table><h2>Protected attributes</h2><div id="classtflite_1_1_mutable_op_resolver_1af5172db0315823b3a2660c50007d682e">
<h3>delegate_creators_</h3>
<pre class="prettyprint">TfLiteDelegateCreators delegate_creators_</pre>
<div>
<p>A vector of delegate creators to create optional delegates for resolving and handling ops in the flatbuffer model. </p>
<p>This may be used in addition to the standard TfLiteRegistration lookup for graph resolution. </p>
</div>
</div><div id="classtflite_1_1_mutable_op_resolver_1a64e217c827d1e46e93d43f7f43dd4bfe">
<h3>may_directly_contain_user_defined_ops_</h3>
<pre class="prettyprint">bool may_directly_contain_user_defined_ops_ = false</pre>
<div>
<p>True if this <a href="/lite/api_docs/cc/class/tflite/op-resolver.html#classtflite_1_1_op_resolver">OpResolver</a> itself (as opposed to chained op resolvers registed with ChainOpResolver) may contain user defined ops. </p>
<p>By "user defined" ops, we mean any op definitions other than those contained in tflite::ops::builtin::BuiltinOpResolver. </p>
</div>
</div><div id="classtflite_1_1_mutable_op_resolver_1a2cdfa779ceb472fe4ee44dddc95ac4cb">
<h3>opaque_delegate_creators_</h3>
<pre class="prettyprint">TfLiteOpaqueDelegateCreators opaque_delegate_creators_</pre>
<div>
<p>A vector of opaque delegate creators to create optional opaque delegates for resolving and handling ops in the flatbuffer model. </p>
<p>This may be used in addition to the standard TfLiteRegistration lookup for graph resolution. This is used for TF Lite in Google Play Services. </p>
</div>
</div><h2>Public functions</h2><div id="classtflite_1_1_mutable_op_resolver_1aa5db2f00250d50a200cb11ef86da04de">
<h3>AddAll</h3>
<pre class="prettyprint">void AddAll(
const <a href="/lite/api_docs/cc/class/tflite/mutable-op-resolver.html#classtflite_1_1_mutable_op_resolver">MutableOpResolver</a> &amp; other
)</pre>
<div>
<p>Registers all operator versions supported by another <a href="/lite/api_docs/cc/class/tflite/mutable-op-resolver.html#classtflite_1_1_mutable_op_resolver">MutableOpResolver</a>. </p>
<p>Replaces any previous registrations for the same operator versions, except that registrations made with <code>AddBuiltin</code> or <code>AddCustom</code> always take precedence over registrations made with <code>ChainOpResolver</code>. </p>
</div>
</div><div id="classtflite_1_1_mutable_op_resolver_1ad323b1664b50a74a6b06d9b8bb150a67">
<h3>AddBuiltin</h3>
<pre class="prettyprint">void AddBuiltin(
tflite::BuiltinOperator op,
const TfLiteRegistration *registration,
int version
)</pre>
<div>
<p>Registers the specified <code>version</code> of the specified builtin operator <code>op</code>. </p>
<p>Replaces any previous registration for the same operator version. </p>
</div>
</div><div id="classtflite_1_1_mutable_op_resolver_1afb9598566ed817f14e5bce63911087c4">
<h3>AddBuiltin</h3>
<pre class="prettyprint">void AddBuiltin(
tflite::BuiltinOperator op,
const TfLiteRegistration *registration,
int min_version,
int max_version
)</pre>
<div>
<p>Registers the specified version range (versions <code>min_version</code> to <code>max_version</code>, inclusive) of the specified builtin operator <code>op</code>. </p>
<p>Replaces any previous registration for the same operator version. </p>
</div>
</div><div id="classtflite_1_1_mutable_op_resolver_1a9c304aaaea9b949b7124adb8b91340c5">
<h3>AddCustom</h3>
<pre class="prettyprint">void AddCustom(
const char *name,
const TfLiteRegistration *registration,
int version
)</pre>
<div>
<p>Registers the specified <code>version</code> of the specified builtin operator <code>op</code>. </p>
<p>Replaces any previous registration for the same operator version. </p>
</div>
</div><div id="classtflite_1_1_mutable_op_resolver_1a7154c1bad3d50421668d9d463dd8445b">
<h3>AddCustom</h3>
<pre class="prettyprint">void AddCustom(
const char *name,
const TfLiteRegistration *registration,
int min_version,
int max_version
)</pre>
<div>
<p>Registers the specified version range (versions <code>min_version</code> to <code>max_version</code>, inclusive) of the specified custom operator <code>name</code>. </p>
<p>Replaces any previous registration for the same operator version. </p>
</div>
</div><div id="classtflite_1_1_mutable_op_resolver_1aa594a32832292ae14993cbca04d8e8a4">
<h3>FindOp</h3>
<pre class="prettyprint">virtual const TfLiteRegistration * FindOp(
tflite::BuiltinOperator op,
int version
) const override</pre>
<div>
<p>Finds the op registration for a builtin operator by enum code. </p>
</div>
</div><div id="classtflite_1_1_mutable_op_resolver_1a8e5f9c21c7706f2ad899cc2e9f2d75d2">
<h3>FindOp</h3>
<pre class="prettyprint">virtual const TfLiteRegistration * FindOp(
const char *op,
int version
) const override</pre>
<div>
<p>Finds the op registration of a custom operator by op name. </p>
</div>
</div><div id="classtflite_1_1_mutable_op_resolver_1a1173e86e8a3244c39dc3de1ff657a8c1">
<h3>GetDelegateCreators</h3>
<pre class="prettyprint">virtual OpResolver::TfLiteDelegateCreators GetDelegateCreators() const final</pre>
<div></div>
</div><div id="classtflite_1_1_mutable_op_resolver_1ad7d6cf93ab0a5cfdde30f2f7e691707e">
<h3>GetOpaqueDelegateCreators</h3>
<pre class="prettyprint">virtual OpResolver::TfLiteOpaqueDelegateCreators GetOpaqueDelegateCreators() const final</pre>
<div></div>
</div><h2>Protected functions</h2><div id="classtflite_1_1_mutable_op_resolver_1aadfe56e199481e8d1546a38ee770488b">
<h3>ChainOpResolver</h3>
<pre class="prettyprint">void ChainOpResolver(
const <a href="/lite/api_docs/cc/class/tflite/op-resolver.html#classtflite_1_1_op_resolver">OpResolver</a> *other
)</pre>
<div>
<p>Registers all operator versions supported by another <a href="/lite/api_docs/cc/class/tflite/op-resolver.html#classtflite_1_1_op_resolver">OpResolver</a>, except any already registered in this <a href="/lite/api_docs/cc/class/tflite/mutable-op-resolver.html#classtflite_1_1_mutable_op_resolver">MutableOpResolver</a>. </p>
<p><code>other</code> must point to an <a href="/lite/api_docs/cc/class/tflite/op-resolver.html#classtflite_1_1_op_resolver">OpResolver</a> whose lifetime is at least as long as the lifetime of the <a href="/lite/api_docs/cc/class/tflite/mutable-op-resolver.html#classtflite_1_1_mutable_op_resolver">MutableOpResolver</a> pointed to by <code>this</code>. The <a href="/lite/api_docs/cc/class/tflite/op-resolver.html#classtflite_1_1_op_resolver">OpResolver</a> pointed to by <code>other</code> should not be modified during the lifetime of this <a href="/lite/api_docs/cc/class/tflite/mutable-op-resolver.html#classtflite_1_1_mutable_op_resolver">MutableOpResolver</a>. </p>
</div>
</div></body>
</html>
@@ -0,0 +1,193 @@
<!DOCTYPE html>
<html devsite="">
<head>
<title>tflite::OpResolver Class Reference</title>
<meta name="page_type" value="reference"/>
<meta content="reference" name="page_type"/></head>
<body><div id="top"><!-- do not remove this div --></div><h1>tflite::<wbr/>OpResolver</h1><b>This is an abstract class.</b><br/><br/><code>#include &lt;op_resolver.h&gt;</code><p>Abstract interface that returns TfLiteRegistrations given op codes or custom op names. </p><h2>Summary</h2><p>This is the mechanism that ops being referenced in the flatbuffer model are mapped to executable function pointers (TfLiteRegistrations). </p><h3>Inheritance</h3>Direct Known Subclasses:<a href="/lite/api_docs/cc/class/tflite/mutable-op-resolver">tflite::MutableOpResolver</a><table class="constructors responsive">
<tr>
<th colspan="2">
<h3>Constructors and Destructors</h3>
</th>
</tr>
<tr>
<td colspan="2">
<code><a href="#classtflite_1_1_op_resolver_1a0c77e42f61545356cdf059b77b5fc25b">~OpResolver</a>()</code>
<br/>
</td>
</tr>
</table><table class="properties responsive">
<tr>
<th colspan="2">
<h3>Public types</h3>
</th>
</tr>
<tr>
<td>
<code><a href="#classtflite_1_1_op_resolver_1a7af97a72cb858d1926baa89a4b69b76f">TfLiteDelegateCreator</a></code>
</td>
<td>using<div>
<code>std::function&lt; std::unique_ptr&lt; TfLiteDelegate, void(*)(TfLiteDelegate *)&gt;(TfLiteContext *)&gt;</code>
</div></td>
</tr>
<tr>
<td>
<code><a href="#classtflite_1_1_op_resolver_1a2d5bec0cb807de14a895b7f887447fb8">TfLiteDelegateCreators</a></code>
</td>
<td>using<div>
<code>std::vector&lt; TfLiteDelegateCreator &gt;</code>
</div></td>
</tr>
<tr>
<td>
<code><a href="#classtflite_1_1_op_resolver_1a5edf154c181fb222fecfc12901b815d4">TfLiteDelegatePtrVector</a></code>
</td>
<td>using<div>
<code>std::vector&lt; std::unique_ptr&lt; TfLiteDelegate, void(*)(TfLiteDelegate *)&gt;&gt;</code>
</div></td>
</tr>
<tr>
<td>
<code><a href="#classtflite_1_1_op_resolver_1a145dc72aea9d1f64603a0fdece4d945a">TfLiteOpaqueDelegateCreator</a></code>
</td>
<td>using<div>
<code>std::function&lt; TfLiteOpaqueDelegatePtr(int)&gt;</code>
</div></td>
</tr>
<tr>
<td>
<code><a href="#classtflite_1_1_op_resolver_1abd7047114847917c8f5aa748a0c07322">TfLiteOpaqueDelegateCreators</a></code>
</td>
<td>using<div>
<code>std::vector&lt; TfLiteOpaqueDelegateCreator &gt;</code>
</div></td>
</tr>
<tr>
<td>
<code><a href="#classtflite_1_1_op_resolver_1a660e42e8f6a9ded2cbfdccd3ad202ec7">TfLiteOpaqueDelegatePtr</a></code>
</td>
<td>using<div>
<code>std::unique_ptr&lt; TfLiteOpaqueDelegate, void(*)(TfLiteOpaqueDelegate *)&gt;</code>
</div></td>
</tr>
</table><table class="methods responsive">
<tr>
<th colspan="2">
<h3>Public functions</h3>
</th>
</tr>
<tr>
<td>
<code><a href="#classtflite_1_1_op_resolver_1a4b1cc6e397440d4a9d47c4d812406ed1">FindOp</a>(tflite::BuiltinOperator op, int version) const =0</code>
</td>
<td>
<div>
<code>virtual const TfLiteRegistration *</code>
</div>
<div>Finds the op registration for a builtin operator by enum code. </div>
</td>
</tr>
<tr>
<td>
<code><a href="#classtflite_1_1_op_resolver_1a0bc0bf7ab1e458d701dbae3e1f9ad834">FindOp</a>(const char *op, int version) const =0</code>
</td>
<td>
<div>
<code>virtual const TfLiteRegistration *</code>
</div>
<div>Finds the op registration of a custom operator by op name. </div>
</td>
</tr>
<tr>
<td>
<code><a href="#classtflite_1_1_op_resolver_1ac0209d301501fe893bc799ed8d1c5d55">GetDelegateCreators</a>() const </code>
</td>
<td>
<div>
<code>virtual TfLiteDelegateCreators</code>
</div>
</td>
</tr>
<tr>
<td>
<code><a href="#classtflite_1_1_op_resolver_1a4ddbd0c045fff41c114756f08424fcb4">GetDelegates</a>(int num_threads) const </code>
</td>
<td>
<div>
<code>virtual TfLiteDelegatePtrVector</code>
</div>
</td>
</tr>
<tr>
<td>
<code><a href="#classtflite_1_1_op_resolver_1ac075c57679241ccb12ed05a215d14af5">GetOpaqueDelegateCreators</a>() const </code>
</td>
<td>
<div>
<code>virtual TfLiteOpaqueDelegateCreators</code>
</div>
</td>
</tr>
</table><h2>Public types</h2><div id="classtflite_1_1_op_resolver_1a7af97a72cb858d1926baa89a4b69b76f">
<h3>TfLiteDelegateCreator</h3>
<pre class="prettyprint">std::function&lt; std::unique_ptr&lt; TfLiteDelegate, void(*)(TfLiteDelegate *)&gt;(TfLiteContext *)&gt; TfLiteDelegateCreator</pre>
<div></div>
</div><div id="classtflite_1_1_op_resolver_1a2d5bec0cb807de14a895b7f887447fb8">
<h3>TfLiteDelegateCreators</h3>
<pre class="prettyprint">std::vector&lt; TfLiteDelegateCreator &gt; TfLiteDelegateCreators</pre>
<div></div>
</div><div id="classtflite_1_1_op_resolver_1a5edf154c181fb222fecfc12901b815d4">
<h3>TfLiteDelegatePtrVector</h3>
<pre class="prettyprint">std::vector&lt; std::unique_ptr&lt; TfLiteDelegate, void(*)(TfLiteDelegate *)&gt;&gt; TfLiteDelegatePtrVector</pre>
<div></div>
</div><div id="classtflite_1_1_op_resolver_1a145dc72aea9d1f64603a0fdece4d945a">
<h3>TfLiteOpaqueDelegateCreator</h3>
<pre class="prettyprint">std::function&lt; TfLiteOpaqueDelegatePtr(int)&gt; TfLiteOpaqueDelegateCreator</pre>
<div></div>
</div><div id="classtflite_1_1_op_resolver_1abd7047114847917c8f5aa748a0c07322">
<h3>TfLiteOpaqueDelegateCreators</h3>
<pre class="prettyprint">std::vector&lt; TfLiteOpaqueDelegateCreator &gt; TfLiteOpaqueDelegateCreators</pre>
<div></div>
</div><div id="classtflite_1_1_op_resolver_1a660e42e8f6a9ded2cbfdccd3ad202ec7">
<h3>TfLiteOpaqueDelegatePtr</h3>
<pre class="prettyprint">std::unique_ptr&lt; TfLiteOpaqueDelegate, void(*)(TfLiteOpaqueDelegate *)&gt; TfLiteOpaqueDelegatePtr</pre>
<div></div>
</div><h2>Public functions</h2><div id="classtflite_1_1_op_resolver_1a4b1cc6e397440d4a9d47c4d812406ed1">
<h3>FindOp</h3>
<pre class="prettyprint">virtual const TfLiteRegistration * FindOp(
tflite::BuiltinOperator op,
int version
) const =0</pre>
<div>
<p>Finds the op registration for a builtin operator by enum code. </p>
</div>
</div><div id="classtflite_1_1_op_resolver_1a0bc0bf7ab1e458d701dbae3e1f9ad834">
<h3>FindOp</h3>
<pre class="prettyprint">virtual const TfLiteRegistration * FindOp(
const char *op,
int version
) const =0</pre>
<div>
<p>Finds the op registration of a custom operator by op name. </p>
</div>
</div><div id="classtflite_1_1_op_resolver_1ac0209d301501fe893bc799ed8d1c5d55">
<h3>GetDelegateCreators</h3>
<pre class="prettyprint">virtual TfLiteDelegateCreators GetDelegateCreators() const </pre>
<div></div>
</div><div id="classtflite_1_1_op_resolver_1a4ddbd0c045fff41c114756f08424fcb4">
<h3>GetDelegates</h3>
<pre class="prettyprint">virtual TfLiteDelegatePtrVector GetDelegates(
int num_threads
) const </pre>
<div></div>
</div><div id="classtflite_1_1_op_resolver_1ac075c57679241ccb12ed05a215d14af5">
<h3>GetOpaqueDelegateCreators</h3>
<pre class="prettyprint">virtual TfLiteOpaqueDelegateCreators GetOpaqueDelegateCreators() const </pre>
<div></div>
</div><div id="classtflite_1_1_op_resolver_1a0c77e42f61545356cdf059b77b5fc25b">
<h3>~OpResolver</h3>
<pre class="prettyprint">virtual ~OpResolver()</pre>
<div></div>
</div></body>
</html>
@@ -0,0 +1,160 @@
<!DOCTYPE html>
<html devsite="">
<head>
<title>tflite::TfLiteIntArrayView Class Reference</title>
<meta name="page_type" value="reference"/>
<meta content="reference" name="page_type"/></head>
<body>
<div id="top"><!-- do not remove this div --></div>
<h1>tflite::<wbr/>TfLiteIntArrayView</h1>
<code>#include &lt;context_util.h&gt;</code>
<p>Provides a range iterable wrapper for TfLiteIntArray* (C lists) that TfLite C api uses. </p>
<h2>Summary</h2>
<table class="constructors responsive">
<tr>
<th colspan="2">
<h3>Constructors and Destructors</h3>
</th>
</tr>
<tr>
<td colspan="2">
<code><a href="#classtflite_1_1_tf_lite_int_array_view_1a22c60d8b5eddb831cf5039cd1e080bd6">TfLiteIntArrayView</a>(const TfLiteIntArray *int_array)</code>
<br/>
<div>Construct a view of a TfLiteIntArray*. </div>
</td>
</tr>
<tr>
<td colspan="2">
<code><a href="#classtflite_1_1_tf_lite_int_array_view_1a1c58f41ee7afe69e71a88481727f5af3">TfLiteIntArrayView</a>(const <a href="/lite/api_docs/cc/class/tflite/tf-lite-int-array-view.html#classtflite_1_1_tf_lite_int_array_view">TfLiteIntArrayView</a> &amp;)</code>
<br/>
</td>
</tr>
</table>
<table class="properties responsive">
<tr>
<th colspan="2">
<h3>Public types</h3>
</th>
</tr>
<tr>
<td>
<code><a href="#classtflite_1_1_tf_lite_int_array_view_1a3f97ac192f11ecf7529c9cc10a618157">const_iterator</a></code>
</td>
<td>typedef<div>
<code>const int *</code>
</div></td>
</tr>
</table>
<table class="methods responsive">
<tr>
<th colspan="2">
<h3>Public functions</h3>
</th>
</tr>
<tr>
<td>
<code><a href="#classtflite_1_1_tf_lite_int_array_view_1a3866d6abfb940498d5f035bdf324bdf0">begin</a>() const </code>
</td>
<td>
<div>
<code>const_iterator</code>
</div>
</td>
</tr>
<tr>
<td>
<code><a href="#classtflite_1_1_tf_lite_int_array_view_1a400f377c2ff85ac6642bd2791e89094a">end</a>() const </code>
</td>
<td>
<div>
<code>const_iterator</code>
</div>
</td>
</tr>
<tr>
<td>
<code><a href="#classtflite_1_1_tf_lite_int_array_view_1ae957ce79889460e6aa5cc50e1c976357">operator=</a>(const <a href="/lite/api_docs/cc/class/tflite/tf-lite-int-array-view.html#classtflite_1_1_tf_lite_int_array_view">TfLiteIntArrayView</a> &amp; rhs)=default</code>
</td>
<td>
<div>
<code><a href="/lite/api_docs/cc/class/tflite/tf-lite-int-array-view.html#classtflite_1_1_tf_lite_int_array_view">TfLiteIntArrayView</a> &amp;</code>
</div>
</td>
</tr>
<tr>
<td>
<code><a href="#classtflite_1_1_tf_lite_int_array_view_1a950aee768378ff776a7149548c535565">operator[]</a>(size_t pos) const </code>
</td>
<td>
<div>
<code>int</code>
</div>
</td>
</tr>
<tr>
<td>
<code><a href="#classtflite_1_1_tf_lite_int_array_view_1a45e83a94e3f4870a8f82ffaafaa630e3">size</a>() const </code>
</td>
<td>
<div>
<code>size_t</code>
</div>
</td>
</tr>
</table>
<h2>Public types</h2>
<div id="classtflite_1_1_tf_lite_int_array_view_1a3f97ac192f11ecf7529c9cc10a618157">
<h3>const_iterator</h3>
<pre class="prettyprint">const int * const_iterator</pre>
<div></div>
</div>
<h2>Public functions</h2>
<div id="classtflite_1_1_tf_lite_int_array_view_1a22c60d8b5eddb831cf5039cd1e080bd6">
<h3>TfLiteIntArrayView</h3>
<pre class="prettyprint"> TfLiteIntArrayView(
const TfLiteIntArray *int_array
)</pre>
<div>
<p>Construct a view of a TfLiteIntArray*. </p>
<p>Note, <code>int_array</code> should be non-null and this view does not take ownership of it. </p>
</div>
</div>
<div id="classtflite_1_1_tf_lite_int_array_view_1a1c58f41ee7afe69e71a88481727f5af3">
<h3>TfLiteIntArrayView</h3>
<pre class="prettyprint"> TfLiteIntArrayView(
const <a href="/lite/api_docs/cc/class/tflite/tf-lite-int-array-view.html#classtflite_1_1_tf_lite_int_array_view">TfLiteIntArrayView</a> &amp;
)=default</pre>
<div></div>
</div>
<div id="classtflite_1_1_tf_lite_int_array_view_1a3866d6abfb940498d5f035bdf324bdf0">
<h3>begin</h3>
<pre class="prettyprint">const_iterator begin() const </pre>
<div></div>
</div>
<div id="classtflite_1_1_tf_lite_int_array_view_1a400f377c2ff85ac6642bd2791e89094a">
<h3>end</h3>
<pre class="prettyprint">const_iterator end() const </pre>
<div></div>
</div>
<div id="classtflite_1_1_tf_lite_int_array_view_1ae957ce79889460e6aa5cc50e1c976357">
<h3>operator=</h3>
<pre class="prettyprint"><a href="/lite/api_docs/cc/class/tflite/tf-lite-int-array-view.html#classtflite_1_1_tf_lite_int_array_view">TfLiteIntArrayView</a> &amp; operator=(
const <a href="/lite/api_docs/cc/class/tflite/tf-lite-int-array-view.html#classtflite_1_1_tf_lite_int_array_view">TfLiteIntArrayView</a> &amp; rhs
)=default</pre>
<div></div>
</div>
<div id="classtflite_1_1_tf_lite_int_array_view_1a950aee768378ff776a7149548c535565">
<h3>operator[]</h3>
<pre class="prettyprint">int operator[](
size_t pos
) const </pre>
<div></div>
</div>
<div id="classtflite_1_1_tf_lite_int_array_view_1a45e83a94e3f4870a8f82ffaafaa630e3">
<h3>size</h3>
<pre class="prettyprint">size_t size() const </pre>
<div></div>
</div>
</body>
</html>
@@ -0,0 +1,147 @@
<!DOCTYPE html>
<html devsite="">
<head>
<title>TensorFlow Lite C++ API Reference</title>
<meta name="page_type" value="reference"/>
<meta content="reference" name="page_type"/></head>
<body>
<div id="top"><!-- do not remove this div --></div>
<h1>TensorFlow Lite C++ API Reference</h1>
<h2>
<a href="/lite/api_docs/cc/namespace/tflite">tflite</a>
</h2>
<table class="nested-classes responsive">
<tbody>
<tr>
<th colspan="2">
<h3>Classes</h3>
</th>
</tr>
<tr>
<td>
<a href="/lite/api_docs/cc/class/tflite/allocation.html">tflite::Allocation</a>
</td>
<td>A memory allocation handle. This could be a mmap or shared memory. </td>
</tr>
<tr>
<td>
<a href="/lite/api_docs/cc/class/tflite/error-reporter.html">tflite::ErrorReporter</a>
</td>
<td>A functor that reports error to supporting system. </td>
</tr>
<tr>
<td>
<a href="/lite/api_docs/cc/class/tflite/file-copy-allocation.html">tflite::FileCopyAllocation</a>
</td>
<td></td>
</tr>
<tr>
<td>
<a href="/lite/api_docs/cc/class/tflite/memory-allocation.html">tflite::MemoryAllocation</a>
</td>
<td></td>
</tr>
<tr>
<td>
<a href="/lite/api_docs/cc/class/tflite/m-m-a-p-allocation.html">tflite::MMAPAllocation</a>
</td>
<td>Note that not all platforms support MMAP-based allocation. </td>
</tr>
<tr>
<td>
<a href="/lite/api_docs/cc/class/tflite/mutable-op-resolver.html">tflite::MutableOpResolver</a>
</td>
<td>An <a href="/lite/api_docs/cc/class/tflite/op-resolver.html#classtflite_1_1_op_resolver">OpResolver</a> that is mutable, also used as the op in gen_op_registration. </td>
</tr>
<tr>
<td>
<a href="/lite/api_docs/cc/class/tflite/op-resolver.html">tflite::OpResolver</a>
</td>
<td>Abstract interface that returns TfLiteRegistrations given op codes or custom op names. </td>
</tr>
<tr>
<td>
<a href="/lite/api_docs/cc/class/tflite/tf-lite-int-array-view.html">tflite::TfLiteIntArrayView</a>
</td>
<td>Provides a range iterable wrapper for TfLiteIntArray* (C lists) that TfLite C api uses. </td>
</tr>
</tbody>
</table>
<table class="constants responsive">
<tbody>
<tr>
<th colspan="2">
<h3>Structs</h3>
</th>
</tr>
<tr>
<td>
<a href="/lite/api_docs/cc/struct/tflite/stderr-reporter.html">tflite::StderrReporter</a>
</td>
<td></td>
</tr>
</tbody>
</table>
<h2>
<a href="/lite/api_docs/cc/namespace/tflite/impl">tflite::<wbr/>impl</a>
</h2>
<table class="nested-classes responsive">
<tbody>
<tr>
<th colspan="2">
<h3>Classes</h3>
</th>
</tr>
<tr>
<td>
<a href="/lite/api_docs/cc/class/tflite/impl/flat-buffer-model.html">tflite::impl::FlatBufferModel</a>
</td>
<td></td>
</tr>
<tr>
<td>
<a href="/lite/api_docs/cc/class/tflite/impl/interpreter.html">tflite::impl::Interpreter</a>
</td>
<td></td>
</tr>
<tr>
<td>
<a href="/lite/api_docs/cc/class/tflite/impl/interpreter-builder.html">tflite::impl::InterpreterBuilder</a>
</td>
<td></td>
</tr>
</tbody>
</table>
<h2>
<a href="/lite/api_docs/cc/namespace/tflite/op-resolver-hasher">tflite::<wbr/>op_resolver_hasher</a>
</h2>
<table class="constants responsive">
<tbody>
<tr>
<th colspan="2">
<h3>Structs</h3>
</th>
</tr>
<tr>
<td>
<a href="/lite/api_docs/cc/struct/tflite/op-resolver-hasher/operator-key-hasher.html">tflite::op_resolver_hasher::OperatorKeyHasher</a>
</td>
<td></td>
</tr>
<tr>
<td>
<a href="/lite/api_docs/cc/struct/tflite/op-resolver-hasher/value-hasher.html">tflite::op_resolver_hasher::ValueHasher</a>
</td>
<td></td>
</tr>
<tr>
<td>
<a href="/lite/api_docs/cc/struct/tflite/op-resolver-hasher/value-hasher-tflite/builtin-operator-.html">tflite::op_resolver_hasher::ValueHasher&lt; tflite::BuiltinOperator &gt;</a>
</td>
<td></td>
</tr>
</tbody>
</table>
</body>
</html>
@@ -0,0 +1,254 @@
<!DOCTYPE html>
<html devsite="">
<head>
<title>tflite Namespace</title>
<meta name="page_type" value="reference"/>
<meta content="reference" name="page_type"/></head>
<body>
<div id="top"><!-- do not remove this div --></div>
<h1>tflite</h1>
<p>\file </p>
<h2>Summary</h2>
<p>For documentation, see <a href="/lite/api_docs/cc/other/core-2interpreter.h-source.html#core_2interpreter_8h_source">tensorflow/lite/core/interpreter.h</a>.</p>
<p>Memory management for TF Lite.</p>
<p>This provides a few C++ helpers that are useful for manipulating C structures in C++.</p>
<p>Main abstraction controlling the tflite interpreter. Do NOT include this file directly, instead include third_party/tensorflow/lite/interpreter.h See third_party/tensorflow/lite/c/common.h for the API for defining operations (TfLiteRegistration).</p>
<p>Provides functionality to construct an interpreter for a model.</p>
<p>WARNING: Users of TensorFlow Lite should not include this file directly, but should instead include "third_party/tensorflow/lite/interpreter_builder.h". Only the TensorFlow Lite implementation itself should include this file directly.</p>
<p>Deserialization infrastructure for tflite. Provides functionality to go from a serialized tflite model in flatbuffer format to an in-memory representation of the model.</p>
<p>WARNING: Users of TensorFlow Lite should not include this file directly, but should instead include "third_party/tensorflow/lite/model_builder.h". Only the TensorFlow Lite implementation itself should include this file directly. </p>
<table class="properties responsive">
<tr>
<th colspan="2">
<h3>Typedefs</h3>
</th>
</tr>
<tr>
<td>
<code><a href="#namespacetflite_1a707add49caebb2ff2ef4c95c43eb2415">FlatBufferModel</a></code>
</td>
<td>using<div>
<code>impl::FlatBufferModel</code>
</div></td>
</tr>
<tr>
<td>
<code><a href="#namespacetflite_1a2d6d829bce5eba5b241987ca5b4f0f40">Interpreter</a></code>
</td>
<td>typedef<div>
<code>::tflite::impl::Interpreter</code>
</div><div>An interpreter for a graph of nodes that input and output from tensors. </div></td>
</tr>
<tr>
<td>
<code><a href="#namespacetflite_1a7be86dcd93a5c9d5542ae31a62506cd4">InterpreterBuilder</a></code>
</td>
<td>using<div>
<code>impl::InterpreterBuilder</code>
</div><div>Build an interpreter capable of interpreting <code>model</code>. </div></td>
</tr>
</table>
<table class="methods responsive">
<tr>
<th colspan="2">
<h3>Functions</h3>
</th>
</tr>
<tr>
<td>
<code><a href="#namespacetflite_1ab1655269407e5a89665b91334eb61361">DefaultErrorReporter</a>()</code>
</td>
<td>
<div>
<code><a href="/lite/api_docs/cc/class/tflite/error-reporter.html#classtflite_1_1_error_reporter">ErrorReporter</a> *</code>
</div>
</td>
</tr>
<tr>
<td>
<code><a href="#namespacetflite_1af8154a8f9b2b80e90f3a4fc76e0256f7">GetRegistrationFromOpCode</a>(const OperatorCode *opcode, const <a href="/lite/api_docs/cc/class/tflite/op-resolver.html#classtflite_1_1_op_resolver">OpResolver</a> &amp; op_resolver, <a href="/lite/api_docs/cc/class/tflite/error-reporter.html#classtflite_1_1_error_reporter">ErrorReporter</a> *error_reporter, const TfLiteRegistration **registration)</code>
</td>
<td>
<div>
<code>TfLiteStatus</code>
</div>
</td>
</tr>
</table>
<table class="nested-classes responsive">
<tr>
<th colspan="2">
<h3>Classes</h3>
</th>
</tr>
<tr>
<td>
<a href="/lite/api_docs/cc/class/tflite/allocation">tflite::<wbr/>Allocation</a>
</td>
<td>
<p>A memory allocation handle. This could be a mmap or shared memory. </p>
</td>
</tr>
<tr>
<td>
<a href="/lite/api_docs/cc/class/tflite/error-reporter">tflite::<wbr/>ErrorReporter</a>
</td>
<td>
<p>A functor that reports error to supporting system. </p>
</td>
</tr>
<tr>
<td>
<a href="/lite/api_docs/cc/class/tflite/file-copy-allocation">tflite::<wbr/>FileCopyAllocation</a>
</td>
<td></td>
</tr>
<tr>
<td>
<a href="/lite/api_docs/cc/class/tflite/m-m-a-p-allocation">tflite::<wbr/>MMAPAllocation</a>
</td>
<td>
<p>Note that not all platforms support MMAP-based allocation. </p>
</td>
</tr>
<tr>
<td>
<a href="/lite/api_docs/cc/class/tflite/memory-allocation">tflite::<wbr/>MemoryAllocation</a>
</td>
<td></td>
</tr>
<tr>
<td>
<a href="/lite/api_docs/cc/class/tflite/mutable-op-resolver">tflite::<wbr/>MutableOpResolver</a>
</td>
<td>
<p>An <a href="/lite/api_docs/cc/class/tflite/op-resolver.html#classtflite_1_1_op_resolver">OpResolver</a> that is mutable, also used as the op in gen_op_registration. </p>
</td>
</tr>
<tr>
<td>
<a href="/lite/api_docs/cc/class/tflite/op-resolver">tflite::<wbr/>OpResolver</a>
</td>
<td>
<p>Abstract interface that returns TfLiteRegistrations given op codes or custom op names. </p>
</td>
</tr>
<tr>
<td>
<a href="/lite/api_docs/cc/class/tflite/tf-lite-int-array-view">tflite::<wbr/>TfLiteIntArrayView</a>
</td>
<td>
<p>Provides a range iterable wrapper for TfLiteIntArray* (C lists) that TfLite C api uses. </p>
</td>
</tr>
</table>
<table class="constants responsive">
<tr>
<th colspan="2">
<h3>Structs</h3>
</th>
</tr>
<tr>
<td>
<a href="/lite/api_docs/cc/struct/tflite/stderr-reporter">tflite::<wbr/>StderrReporter</a>
</td>
<td></td>
</tr>
</table>
<table class="constants responsive">
<tr>
<th colspan="2">
<h3>Namespaces</h3>
</th>
</tr>
<tr>
<td>
<a href="/lite/api_docs/cc/namespace/tflite/impl">tflite::<wbr/>impl</a>
</td>
<td>
<p>An RAII object that represents a read-only tflite model, copied from disk, or mmapped. </p>
</td>
</tr>
<tr>
<td>
<a href="/lite/api_docs/cc/namespace/tflite/op-resolver-hasher">tflite::<wbr/>op_resolver_hasher</a>
</td>
<td></td>
</tr>
</table>
<h2>Typedefs</h2>
<div id="namespacetflite_1a707add49caebb2ff2ef4c95c43eb2415">
<h3>FlatBufferModel</h3>
<pre class="prettyprint">impl::FlatBufferModel FlatBufferModel</pre>
<div></div>
</div>
<div id="namespacetflite_1a2d6d829bce5eba5b241987ca5b4f0f40">
<h3>Interpreter</h3>
<pre class="prettyprint">::tflite::impl::Interpreter Interpreter</pre>
<div>
<p>An interpreter for a graph of nodes that input and output from tensors. </p>
<p>Each node of the graph processes a set of input tensors and produces a set of output Tensors. All inputs/output tensors are referenced by index.</p>
<p>Usage:</p>
<p>
<pre class="prettyprint"><code>
// Create model from file. Note that the model instance must outlive the
// interpreter instance.
auto model = tflite::FlatBufferModel::BuildFromFile(...);
if (model == nullptr) {
// Return error.
}
// Create an Interpreter with an InterpreterBuilder.
std::unique_ptr<tflite::interpreter> interpreter;
tflite::ops::builtin::BuiltinOpResolver resolver;
if (InterpreterBuilder(*model, resolver)(&amp;interpreter) != kTfLiteOk) {
// Return failure.
}
if (interpreter-&gt;AllocateTensors() != kTfLiteOk) {
// Return failure.
}</tflite::interpreter></code></pre>
</p>
<p>
<pre class="prettyprint"><code>auto input = interpreter-&gt;typed_tensor<float>(0);
for (int i = 0; i &lt; input_size; i++) {
input[i] = ...; interpreter-&gt;Invoke();
</float></code></pre>
</p>
<p>Note: For nearly all practical use cases, one should not directly construct an Interpreter object, but rather use the InterpreterBuilder.</p>
<p>\warning This class is <i>not</i> thread-safe. The client is responsible for ensuring serialized interaction to avoid data races and undefined behavior. </p>
</div>
</div>
<div id="namespacetflite_1a7be86dcd93a5c9d5542ae31a62506cd4">
<h3>InterpreterBuilder</h3>
<pre class="prettyprint">impl::InterpreterBuilder InterpreterBuilder</pre>
<div>
<p>Build an interpreter capable of interpreting <code>model</code>. </p>
<p>
<ul>
<li><code>model</code>: A model whose lifetime must be at least as long as any interpreter(s) created by the builder. In principle multiple interpreters can be made from a single model.</li>
<li><code>op_resolver</code>: An instance that implements the <code><a href="/lite/api_docs/cc/class/tflite/op-resolver.html#classtflite_1_1_op_resolver">OpResolver</a></code> interface, which maps custom op names and builtin op codes to op registrations. The lifetime of the provided <code>op_resolver</code> object must be at least as long as the <code>InterpreterBuilder</code>; unlike <code>model</code> and <code>error_reporter</code>, the <code>op_resolver</code> does not need to exist for the duration of any created <code>Interpreter</code> objects.</li>
<li><code>error_reporter</code>: a functor that is called to report errors that handles printf var arg semantics. The lifetime of the <code>error_reporter</code> object must be greater than or equal to the <code>Interpreter</code> created by <code>operator()</code>.</li>
<li><code>options_experimental</code>: Options that can change behavior of interpreter. WARNING: this parameter is an experimental API and is subject to change.</li>
</ul>
</p>
<p>Returns a kTfLiteOk when successful and sets interpreter to a valid Interpreter. Note: The user must ensure the lifetime of the model (and error reporter, if provided) is at least as long as interpreter's lifetime, and a single model instance may safely be used with multiple interpreters. </p>
</div>
</div>
<h2>Functions</h2>
<div id="namespacetflite_1ab1655269407e5a89665b91334eb61361">
<h3>DefaultErrorReporter</h3>
<pre class="prettyprint"><a href="/lite/api_docs/cc/class/tflite/error-reporter.html#classtflite_1_1_error_reporter">ErrorReporter</a> * DefaultErrorReporter()</pre>
<div></div>
</div>
<div id="namespacetflite_1af8154a8f9b2b80e90f3a4fc76e0256f7">
<h3>GetRegistrationFromOpCode</h3>
<pre class="prettyprint">TfLiteStatus GetRegistrationFromOpCode(
const OperatorCode *opcode,
const <a href="/lite/api_docs/cc/class/tflite/op-resolver.html#classtflite_1_1_op_resolver">OpResolver</a> &amp; op_resolver,
<a href="/lite/api_docs/cc/class/tflite/error-reporter.html#classtflite_1_1_error_reporter">ErrorReporter</a> *error_reporter,
const TfLiteRegistration **registration
)</pre>
<div></div>
</div>
</body>
</html>
@@ -0,0 +1,57 @@
<!DOCTYPE html>
<html devsite="">
<head>
<title>tflite::impl Namespace</title>
<meta name="page_type" value="reference"/>
<meta content="reference" name="page_type"/></head>
<body>
<div id="top"><!-- do not remove this div --></div>
<h1>tflite::<wbr/>impl</h1>
<p>An RAII object that represents a read-only tflite model, copied from disk, or mmapped. </p>
<h2>Summary</h2>
<p>This uses flatbuffers as the serialization format.</p>
<p>NOTE: The current API requires that a FlatBufferModel instance be kept alive by the client as long as it is in use by any dependent Interpreter instances. As the FlatBufferModel instance is effectively immutable after creation, the client may safely use a single model with multiple dependent Interpreter instances, even across multiple threads (though note that each Interpreter instance is <i>not</i> thread-safe).</p>
<p>
<pre class="prettyprint"><code>
using namespace tflite;
StderrReporter error_reporter;
auto model = FlatBufferModel::BuildFromFile("interesting_model.tflite",
&amp;error_reporter);
MyOpResolver resolver; // You need to subclass <a href="/lite/api_docs/cc/class/tflite/op-resolver.html#classtflite_1_1_op_resolver">OpResolver</a> to provide
// implementations.
InterpreterBuilder builder(*model, resolver);
std::unique_ptr<interpreter> interpreter;
if(builder(&amp;interpreter) == kTfLiteOk) {
.. run model inference with interpreter
}
</interpreter></code></pre>
</p>
<p><a href="/lite/api_docs/cc/class/tflite/op-resolver.html#classtflite_1_1_op_resolver">OpResolver</a> must be defined to provide your kernel implementations to the interpreter. This is environment specific and may consist of just the builtin ops, or some custom operators you defined to extend tflite. </p>
<table class="nested-classes responsive">
<tr>
<th colspan="2">
<h3>Classes</h3>
</th>
</tr>
<tr>
<td>
<a href="/lite/api_docs/cc/class/tflite/impl/flat-buffer-model">tflite::<wbr/>impl::<wbr/>FlatBufferModel</a>
</td>
<td></td>
</tr>
<tr>
<td>
<a href="/lite/api_docs/cc/class/tflite/impl/interpreter">tflite::<wbr/>impl::<wbr/>Interpreter</a>
</td>
<td></td>
</tr>
<tr>
<td>
<a href="/lite/api_docs/cc/class/tflite/impl/interpreter-builder">tflite::<wbr/>impl::<wbr/>InterpreterBuilder</a>
</td>
<td></td>
</tr>
</table>
</body>
</html>
@@ -0,0 +1,38 @@
<!DOCTYPE html>
<html devsite="">
<head>
<title>tflite::op_resolver_hasher Namespace</title>
<meta name="page_type" value="reference"/>
<meta content="reference" name="page_type"/></head>
<body>
<div id="top"><!-- do not remove this div --></div>
<h1>tflite::<wbr/>op_resolver_hasher</h1>
<h2>Summary</h2>
<table class="constants responsive">
<tr>
<th colspan="2">
<h3>Structs</h3>
</th>
</tr>
<tr>
<td>
<a href="/lite/api_docs/cc/struct/tflite/op-resolver-hasher/operator-key-hasher">tflite::<wbr/>op_resolver_hasher::<wbr/>OperatorKeyHasher</a>
</td>
<td></td>
</tr>
<tr>
<td>
<a href="/lite/api_docs/cc/struct/tflite/op-resolver-hasher/value-hasher">tflite::<wbr/>op_resolver_hasher::<wbr/>ValueHasher</a>
</td>
<td></td>
</tr>
<tr>
<td>
<a href="/lite/api_docs/cc/struct/tflite/op-resolver-hasher/value-hasher-tflite/builtin-operator-">tflite::<wbr/>op_resolver_hasher::<wbr/>ValueHasher&lt; tflite::<wbr/>BuiltinOperator &gt;</a>
</td>
<td></td>
</tr>
</table>
</body>
</html>
@@ -0,0 +1,38 @@
<!DOCTYPE html>
<html devsite="">
<head>
<title>tflite::op_resolver_hasher::OperatorKeyHasher Struct Reference</title>
<meta name="page_type" value="reference"/>
<meta content="reference" name="page_type"/></head>
<body>
<div id="top"><!-- do not remove this div --></div>
<h1>tflite::<wbr/>op_resolver_hasher::<wbr/>OperatorKeyHasher</h1>
<h2>Summary</h2>
<table class="methods responsive">
<tr>
<th colspan="2">
<h3>Public functions</h3>
</th>
</tr>
<tr>
<td>
<code><a href="#structtflite_1_1op__resolver__hasher_1_1_operator_key_hasher_1a2e4f5482be3463316ea00290894dc8e2">operator()</a>(const T &amp; x) const </code>
</td>
<td>
<div>
<code>size_t</code>
</div>
</td>
</tr>
</table>
<h2>Public functions</h2>
<div id="structtflite_1_1op__resolver__hasher_1_1_operator_key_hasher_1a2e4f5482be3463316ea00290894dc8e2">
<h3>operator()</h3>
<pre class="prettyprint">size_t tflite::op_resolver_hasher::OperatorKeyHasher::operator()(
const T &amp; x
) const </pre>
<div></div>
</div>
</body>
</html>
@@ -0,0 +1,38 @@
<!DOCTYPE html>
<html devsite="">
<head>
<title>tflite::op_resolver_hasher::ValueHasher&lt; tflite::BuiltinOperator &gt; Struct Reference</title>
<meta name="page_type" value="reference"/>
<meta content="reference" name="page_type"/></head>
<body>
<div id="top"><!-- do not remove this div --></div>
<h1>tflite::<wbr/>op_resolver_hasher::<wbr/>ValueHasher&lt; tflite::<wbr/>BuiltinOperator &gt;</h1>
<h2>Summary</h2>
<table class="methods responsive">
<tr>
<th colspan="2">
<h3>Public functions</h3>
</th>
</tr>
<tr>
<td>
<code><a href="#structtflite_1_1op__resolver__hasher_1_1_value_hasher_3_01tflite_1_1_builtin_operator_01_4_1abfe5aa7071a4286736877efcfa81331b">operator()</a>(const tflite::BuiltinOperator &amp; v) const </code>
</td>
<td>
<div>
<code>size_t</code>
</div>
</td>
</tr>
</table>
<h2>Public functions</h2>
<div id="structtflite_1_1op__resolver__hasher_1_1_value_hasher_3_01tflite_1_1_builtin_operator_01_4_1abfe5aa7071a4286736877efcfa81331b">
<h3>operator()</h3>
<pre class="prettyprint">size_t tflite::op_resolver_hasher::ValueHasher&lt; tflite::BuiltinOperator &gt;::operator()(
const tflite::BuiltinOperator &amp; v
) const </pre>
<div></div>
</div>
</body>
</html>
@@ -0,0 +1,38 @@
<!DOCTYPE html>
<html devsite="">
<head>
<title>tflite::op_resolver_hasher::ValueHasher Struct Reference</title>
<meta name="page_type" value="reference"/>
<meta content="reference" name="page_type"/></head>
<body>
<div id="top"><!-- do not remove this div --></div>
<h1>tflite::<wbr/>op_resolver_hasher::<wbr/>ValueHasher</h1>
<h2>Summary</h2>
<table class="methods responsive">
<tr>
<th colspan="2">
<h3>Public functions</h3>
</th>
</tr>
<tr>
<td>
<code><a href="#structtflite_1_1op__resolver__hasher_1_1_value_hasher_1af6c469b24671f7764a4b0d0b0687c0e1">operator()</a>(const V &amp; v) const </code>
</td>
<td>
<div>
<code>size_t</code>
</div>
</td>
</tr>
</table>
<h2>Public functions</h2>
<div id="structtflite_1_1op__resolver__hasher_1_1_value_hasher_1af6c469b24671f7764a4b0d0b0687c0e1">
<h3>operator()</h3>
<pre class="prettyprint">size_t tflite::op_resolver_hasher::ValueHasher::operator()(
const V &amp; v
) const </pre>
<div></div>
</div>
</body>
</html>
@@ -0,0 +1,32 @@
<!DOCTYPE html>
<html devsite="">
<head>
<title>tflite::StderrReporter Struct Reference</title>
<meta name="page_type" value="reference"/>
<meta content="reference" name="page_type"/></head>
<body><div id="top"><!-- do not remove this div --></div><h1>tflite::<wbr/>StderrReporter</h1><h2>Summary</h2><h3>Inheritance</h3>Inherits from: <a href="/lite/api_docs/cc/class/tflite/error-reporter">tflite::ErrorReporter</a><table class="methods responsive">
<tr>
<th colspan="2">
<h3>Public functions</h3>
</th>
</tr>
<tr>
<td>
<code><a href="#structtflite_1_1_stderr_reporter_1a15ff43d715af3ffcfaf211abe39518bc">Report</a>(const char *format, va_list args) override</code>
</td>
<td>
<div>
<code>int</code>
</div>
</td>
</tr>
</table><h2>Public functions</h2><div id="structtflite_1_1_stderr_reporter_1a15ff43d715af3ffcfaf211abe39518bc">
<h3>Report</h3>
<pre class="prettyprint">int tflite::StderrReporter::Report(
const char *format,
va_list args
) override</pre>
<div></div>
</div></body>
</html>