0

In the official documentation of tflite API for C++, many methods have TfLiteTensor or a pointer to such type as return value (e.g., input_tensor() method.. Is there any reference to which attributes and methods are available for TfLiteTensor class?

I looked in the official Tflite documentation, googled around and went through the source code on github, but couldn't find anything.

matko031
  • 53
  • 7

1 Answers1

0

TfLiteTensor is part of the TensorFlow Lite C API project and is a C struct (not a c++ class). I'm not seeing any way to generate documentation for it explicitly, nor do I see anything on line. The code API read me is located here:

https://github.com/tensorflow/tensorflow/blob/master/tensorflow/lite/c/README.md

the TfLiteTensor definition is here:

https://github.com/tensorflow/tensorflow/blob/master/tensorflow/lite/c/common.h#L526

Jimmy Johnson
  • 889
  • 7
  • 20
  • For anyone looking for the definition it has been moved https://github.com/tensorflow/tensorflow/blob/master/tensorflow/lite/core/c/common.h – Error404 Jan 12 '23 at 12:42