ONE - On-device Neural Engine
Loading...
Searching...
No Matches
onert_micro::core::OMBaseContext Class Reference

#include <OMRuntimeData.h>

Collaboration diagram for onert_micro::core::OMBaseContext:

Public Member Functions

 OMBaseContext (const circle::Tensor *tensor)
 
virtual ~OMBaseContext ()=default
 
const circle::Tensor * Tensor () const noexcept
 
const OMRuntimeShapeShape () const noexcept
 
const int32_t * Dims () const
 
size_t DimsCount () const
 
size_t ShapeFlatSize () const
 

Protected Attributes

const circle::Tensor * _tensor
 
OMRuntimeShape _shape
 

Detailed Description

Definition at line 34 of file OMRuntimeData.h.

Constructor & Destructor Documentation

◆ OMBaseContext()

onert_micro::core::OMBaseContext::OMBaseContext ( const circle::Tensor *  tensor)
inlineexplicit

Definition at line 41 of file OMRuntimeData.h.

42 : _tensor(tensor)
43 , _shape(tensor)
44 {
45 assert(_tensor != nullptr);
46 }
const circle::Tensor * _tensor

References _tensor.

◆ ~OMBaseContext()

virtual onert_micro::core::OMBaseContext::~OMBaseContext ( )
virtualdefault

Member Function Documentation

◆ Dims()

const int32_t * onert_micro::core::OMBaseContext::Dims ( ) const
inline

Definition at line 61 of file OMRuntimeData.h.

62 {
63 return _shape.dimsData();
64 }

References _shape, and onert_micro::core::OMRuntimeShape::dimsData().

◆ DimsCount()

size_t onert_micro::core::OMBaseContext::DimsCount ( ) const
inline

Definition at line 66 of file OMRuntimeData.h.

67 {
68 return _shape.dimensionsCount();
69 }
size_t dimensionsCount() const noexcept

References _shape, and onert_micro::core::OMRuntimeShape::dimensionsCount().

◆ Shape()

const OMRuntimeShape & onert_micro::core::OMBaseContext::Shape ( ) const
inlinenoexcept

Definition at line 56 of file OMRuntimeData.h.

57 {
58 return _shape;
59 }

References _shape.

◆ ShapeFlatSize()

size_t onert_micro::core::OMBaseContext::ShapeFlatSize ( ) const
inline

Definition at line 71 of file OMRuntimeData.h.

72 {
73 return _shape.flatSize();
74 }

References _shape, and onert_micro::core::OMRuntimeShape::flatSize().

◆ Tensor()

const circle::Tensor * onert_micro::core::OMBaseContext::Tensor ( ) const
inlinenoexcept

Definition at line 51 of file OMRuntimeData.h.

52 {
53 return _tensor;
54 }

References _tensor.

Field Documentation

◆ _shape

OMRuntimeShape onert_micro::core::OMBaseContext::_shape
protected

Definition at line 38 of file OMRuntimeData.h.

Referenced by Dims(), DimsCount(), Shape(), and ShapeFlatSize().

◆ _tensor

const circle::Tensor* onert_micro::core::OMBaseContext::_tensor
protected

Definition at line 37 of file OMRuntimeData.h.

Referenced by OMBaseContext(), and Tensor().


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