class ov::Shape

Shape for a tensor.

#include <shape.hpp>

class Shape: public std::vector< size_t >
{
public:
    // construction

    Shape();
    Shape(const std::initializer_list<size_t>& axis_lengths);
    Shape(const std::vector<size_t>& axis_lengths);
    Shape(const Shape& axis_lengths);
    Shape(size_t n, size_t initial_value = 0);

    template <class InputIterator>
    Shape(InputIterator first, InputIterator last);

    // methods

    OPENVINO_API Shape& operator = (const Shape& v);
    OPENVINO_API Shape& operator = (Shape&& v);
};