ONE - On-device Neural Engine
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
onert::shape_inference::bcq Namespace Reference

Functions

int getOutputSize (const ir::Shape &cluster_shape, const int32_t *cluster_buf)
 

Function Documentation

◆ getOutputSize()

int onert::shape_inference::bcq::getOutputSize ( const ir::Shape cluster_shape,
const int32_t *  cluster_buf 
)
inline

Definition at line 74 of file ShapeInference.cc.

75{
76 int size = 0;
77 for (int idx = 0; idx < cluster_shape.dim(0); idx++)
78 {
79 size += cluster_buf[idx * 2 + 1];
80 }
81 return size;
82}
int32_t size[5]
Definition Slice.cpp:35

References size.

Referenced by onert::shape_inference::inferBCQFullyConnectedShape(), and onert::shape_inference::inferBCQGatherShape().