ONE - On-device Neural Engine
Loading...
Searching...
No Matches
luci_interpreter::kernels::BroadcastableWrapper< T > Class Template Reference

#include <Utils.h>

Public Member Functions

 BroadcastableWrapper (const std::vector< T > &v)
 
operator[] (int idx)
 
 BroadcastableWrapper (const std::vector< T > &v)
 
operator[] (int idx)
 

Detailed Description

template<typename T>
class luci_interpreter::kernels::BroadcastableWrapper< T >

Definition at line 182 of file Utils.h.

Constructor & Destructor Documentation

◆ BroadcastableWrapper() [1/2]

template<typename T >
luci_interpreter::kernels::BroadcastableWrapper< T >::BroadcastableWrapper ( const std::vector< T > &  v)
inline

Definition at line 185 of file Utils.h.

185: _v(v), _stride(v.size() == 1 ? 0 : 1) {}

◆ BroadcastableWrapper() [2/2]

template<typename T >
luci_interpreter::kernels::BroadcastableWrapper< T >::BroadcastableWrapper ( const std::vector< T > &  v)
inline

Definition at line 97 of file Utils.h.

97: _v(v), _stride(v.size() == 1 ? 0 : 1) {}

Member Function Documentation

◆ operator[]() [1/2]

template<typename T >
T luci_interpreter::kernels::BroadcastableWrapper< T >::operator[] ( int  idx)
inline

Definition at line 187 of file Utils.h.

187{ return _v[idx * _stride]; }

◆ operator[]() [2/2]

template<typename T >
T luci_interpreter::kernels::BroadcastableWrapper< T >::operator[] ( int  idx)
inline

Definition at line 99 of file Utils.h.

99{ return _v[idx * _stride]; }

The documentation for this class was generated from the following files: