ONE - On-device Neural Engine
Loading...
Searching...
No Matches
loco::TensorShape Class Reference

#include <TensorShape.h>

Public Member Functions

 TensorShape ()=default
 
 TensorShape (std::initializer_list< Dimension > dims)
 
uint32_t rank (void) const
 
void rank (uint32_t r)
 
const Dimensiondim (uint32_t axis) const
 
Dimensiondim (uint32_t axis)
 

Detailed Description

Definition at line 28 of file TensorShape.h.

Constructor & Destructor Documentation

◆ TensorShape() [1/2]

loco::TensorShape::TensorShape ( )
default

◆ TensorShape() [2/2]

loco::TensorShape::TensorShape ( std::initializer_list< Dimension dims)
inline

Definition at line 32 of file TensorShape.h.

32: _dims(dims.begin(), dims.end()) {}
std::vector< int > dims(const std::string &src)
Definition Utils.h:35

Member Function Documentation

◆ dim() [1/2]

Dimension & loco::TensorShape::dim ( uint32_t  axis)
inline

Definition at line 39 of file TensorShape.h.

39{ return _dims.at(axis); }

◆ dim() [2/2]

◆ rank() [1/2]

void loco::TensorShape::rank ( uint32_t  r)
inline

Definition at line 36 of file TensorShape.h.

36{ _dims.resize(r); }

◆ rank() [2/2]


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