ArmNN
 24.08
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 4526 of file TfLiteParser.cpp.

4527 {
4528  int numDims = armnn::numeric_cast<int>(numDimsIn);
4529  int v = idx < 0 ? numDims + idx : idx;
4530 
4531  if (v < 0 || v > numDims)
4532  {
4533  throw ParseException(fmt::format("Unable to compute index {}", CHECK_LOCATION().AsString()));
4534  }
4535 
4536  return static_cast<unsigned int>(v);
4537 }

References CHECK_LOCATION.

CHECK_LOCATION
#define CHECK_LOCATION()
Definition: Exceptions.hpp:203
armnn::ParseException
Definition: Exceptions.hpp:92