ONE - On-device Neural Engine
Loading...
Searching...
No Matches
onert::backend::train::LayerScopeTensorIndex Class Reference

#include <LayerScopeTensorIndex.h>

Public Member Functions

 LayerScopeTensorIndex (const ir::OperationIndex &op_index, uint32_t sub_index)
 
const ir::OperationIndexop_index () const
 
uint32_t sub_index () const
 
bool operator== (const LayerScopeTensorIndex &other) const
 
bool operator!= (const LayerScopeTensorIndex &other) const
 

Detailed Description

Definition at line 31 of file LayerScopeTensorIndex.h.

Constructor & Destructor Documentation

◆ LayerScopeTensorIndex()

onert::backend::train::LayerScopeTensorIndex::LayerScopeTensorIndex ( const ir::OperationIndex op_index,
uint32_t  sub_index 
)
inline

Definition at line 34 of file LayerScopeTensorIndex.h.

35 : _op_index{op_index}, _sub_index{sub_index}
36 {
37 assert(op_index.valid());
38 }
const ir::OperationIndex & op_index() const
bool valid() const
Check whether the value is valid or not.
Definition Index.h:127

References op_index(), and onert::util::Index< T, DummyTag >::valid().

Member Function Documentation

◆ op_index()

const ir::OperationIndex & onert::backend::train::LayerScopeTensorIndex::op_index ( ) const
inline

Definition at line 41 of file LayerScopeTensorIndex.h.

41{ return _op_index; }

Referenced by LayerScopeTensorIndex(), onert::backend::train::operator<<(), and operator==().

◆ operator!=()

bool onert::backend::train::LayerScopeTensorIndex::operator!= ( const LayerScopeTensorIndex other) const
inline

Definition at line 48 of file LayerScopeTensorIndex.h.

48{ return !(*this == other); }

◆ operator==()

bool onert::backend::train::LayerScopeTensorIndex::operator== ( const LayerScopeTensorIndex other) const
inline

Definition at line 44 of file LayerScopeTensorIndex.h.

45 {
46 return _op_index == other.op_index() && _sub_index == other.sub_index();
47 }

References op_index(), and sub_index().

◆ sub_index()

uint32_t onert::backend::train::LayerScopeTensorIndex::sub_index ( ) const
inline

Definition at line 42 of file LayerScopeTensorIndex.h.

42{ return _sub_index; }

Referenced by onert::backend::train::operator<<(), and operator==().


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