Back to Tensorflow

tflite::TfLiteIntArrayView

tensorflow/lite/g3doc/api_docs/cc/class/tflite/tf-lite-int-array-view.html

2.21.01.7 KB
Original Source

tflite::TfLiteIntArrayView

#include <context_util.h>

Provides a range iterable wrapper for TfLiteIntArray* (C lists) that TfLite C api uses.

Summary

|

Constructors and Destructors

| | --- | | TfLiteIntArrayView(const TfLiteIntArray *int_array)

Construct a view of a TfLiteIntArray*. | | TfLiteIntArrayView(const TfLiteIntArrayView &)
|

|

Public types

| | --- | | const_iterator | typedef const int * |

|

Public functions

| | --- | | begin() const | const_iterator | | end() const | const_iterator | | operator=(const TfLiteIntArrayView & rhs)=default | TfLiteIntArrayView & | | operator[](size_t pos) const | int | | size() const | size_t |

Public types

const_iterator

const int * const_iterator

Public functions

TfLiteIntArrayView

TfLiteIntArrayView(
  const TfLiteIntArray *int_array
)

Construct a view of a TfLiteIntArray*.

Note, int_array should be non-null and this view does not take ownership of it.

TfLiteIntArrayView

TfLiteIntArrayView(
  const[TfLiteIntArrayView](/lite/api_docs/cc/class/tflite/tf-lite-int-array-view.html#classtflite_1_1_tf_lite_int_array_view)&
)=default

begin

const_iterator begin() const

end

const_iterator end() const

operator=

[TfLiteIntArrayView](/lite/api_docs/cc/class/tflite/tf-lite-int-array-view.html#classtflite_1_1_tf_lite_int_array_view)& operator=(
  const[TfLiteIntArrayView](/lite/api_docs/cc/class/tflite/tf-lite-int-array-view.html#classtflite_1_1_tf_lite_int_array_view)& rhs
)=default

operator[]

int operator[](
  size_t pos
) const

size

size_t size() const