ONE - On-device Neural Engine
Loading...
Searching...
No Matches
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 77 of file ShapeInference.cc.

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

References size.

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