2 #ifndef _NNDEPLOY_BASE_SHAPE_H_
3 #define _NNDEPLOY_BASE_SHAPE_H_
28 int start_index = 0,
int end_index = -1);
#define NNDEPLOY_CC_API
api
size_t shapeCount(const IntVector &dims, int start_index=0, int end_index=-1)
std::vector< int > IntVector
bool isDynamicShape(const IntVector &dims)
IntVector shapeMax(const IntVector &dims0, const IntVector &dims1, int start_index=0, int end_index=-1)
bool shapeEqual(const IntVector &dims0, const IntVector &dims1, int start_index=0, int end_index=-1)
IntVector shapeMin(const IntVector &dims0, const IntVector &dims1, int start_index=0, int end_index=-1)
IntVector shapeNchw2Nhwc(const IntVector &dims)
IntVector shapeNhwc2Nchw(const IntVector &dims)