tensorflow/lite/kernels/variants/README.md
Variant tensors in TensorFlow wrap and store arbitrary C++ objects within their data members. Common usage regards non-trivial and potentially referential buffer semantics (TensorLists and DataSets being cannonical examples).
This directory contains implementations for these containers
and kernels for the tflite runtime.
Currently tflite supplies performant custom kernels for a subset of
tf.list_ops.
Also refer to variant tensor in the tflite common api
, tensor list legalization
, and end to end python tests
for example usage.
api
./py/register_list_ops_py.py : Bindings for registering ops in python../list_ops_lib : Include for tensorlist kernel registrations../register_list_ops : Register all kernels with op resolver in C++.implementations
./list_kernels/ : Custom TensorList* kernels for tflite../tensor_array : A variable length array of reference counted TfLiteTensor
.tests
/list_ops_subgraph_test : Multi-Op tests through C++ api./py/end_to_end_test.py : Tests through python api and compare to tf.list_ops.