ArmNN
 24.02
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 4477 of file TfLiteParser.cpp.

4478 {
4479  int numDims = armnn::numeric_cast<int>(numDimsIn);
4480  int v = idx < 0 ? numDims + idx : idx;
4481 
4482  if (v < 0 || v > numDims)
4483  {
4484  throw ParseException(fmt::format("Unable to compute index {}", CHECK_LOCATION().AsString()));
4485  }
4486 
4487  return static_cast<unsigned int>(v);
4488 }

References CHECK_LOCATION.

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