forked from openvinotoolkit/openvino
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathshape_util.hpp
30 lines (26 loc) · 842 Bytes
/
shape_util.hpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
// Copyright (C) 2018-2023 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#pragma once
#include "openvino/core/shape.hpp"
namespace ov {
namespace util {
/**
* @brief Makes spacial version of 2D ov::Shape which is recognize as dynamic.
*
* This is special case used for tensor <-> host tensor conversion to indicate that tensor got dynamic shape.
*
* @return 2-D shape with {0, SIZE_MAX}
*/
OPENVINO_DEPRECATED("This function is deprecated and will be removed soon.")
OPENVINO_API Shape make_dynamic_shape();
/**
* @brief Check if Shape is marked as dynamic.
*
* @param s Shape for check.
* @return True if shape is dynamic otherwise false.
*/
OPENVINO_DEPRECATED("This function is deprecated and will be removed soon.")
OPENVINO_API bool is_dynamic_shape(const Shape& s);
} // namespace util
} // namespace ov