Group Shape#

group ov_shape_c_api

The definitions & operations about shape.

Functions

ov_shape_create(const int64_t rank, const int64_t *dims, ov_shape_t *shape)#

Initialize a fully shape object, allocate space for its dimensions and set its content id dims is not null.

Parameters:
  • rank – The rank value for this object, it should be more than 0(>0)

  • dims – The dimensions data for this shape object, it’s size should be equal to rank.

  • shape – The input/output shape object pointer.

Returns:

ov_status_e The return status code.

ov_shape_free(ov_shape_t *shape)#

Free a shape object’s internal memory.

Parameters:

shape – The input shape object pointer.

Returns:

ov_status_e The return status code.

struct ov_shape_t#
#include <ov_shape.h>

Reprents a static shape.

Public Members

int64_t rank#

the rank of shape

int64_t *dims#

the dims of shape