Shape

Overview

The definitions & operations about shape. More…

// structs

struct ov_shape_t;

// global functions

ov_shape_create(const int64_t rank, const int64_t \* dims, ov_shape_t \* shape);
ov_shape_free(ov_shape_t \* shape);

Detailed Documentation

The definitions & operations about shape.

Global 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.