ArmNN
 26.07
armnnTfLiteParser Namespace Reference

Classes

class  ITfLiteParser
 
class  TfLiteParserImpl
 

Typedefs

using BindingPointInfo = armnn::BindingPointInfo
 
using ITfLiteParserPtr = std::unique_ptr< ITfLiteParser, void(*)(ITfLiteParser *parser)>
 

Functions

unsigned int ComputeWrappedIndex (int idx, unsigned int numDimsIn)
 

Typedef Documentation

◆ BindingPointInfo

Definition at line 20 of file ITfLiteParser.hpp.

◆ ITfLiteParserPtr

using ITfLiteParserPtr = std::unique_ptr<ITfLiteParser, void(*)(ITfLiteParser* parser)>

Definition at line 24 of file ITfLiteParser.hpp.

Function Documentation

◆ ComputeWrappedIndex()

unsigned int armnnTfLiteParser::ComputeWrappedIndex ( int  idx,
unsigned int  numDimsIn 
)

Definition at line 4606 of file TfLiteParser.cpp.

4607 {
4608  int numDims = armnn::numeric_cast<int>(numDimsIn);
4609  int v = idx < 0 ? numDims + idx : idx;
4610 
4611  if (v < 0 || v > numDims)
4612  {
4613  throw ParseException(fmt::format("Unable to compute index {}", CHECK_LOCATION().AsString()));
4614  }
4615 
4616  return static_cast<unsigned int>(v);
4617 }
#define CHECK_LOCATION()
Definition: Exceptions.hpp:203

References CHECK_LOCATION.