struct ov::result_shape<PartialShape>¶
Get correct result shape for PartialShape which is same type.
#include <utils.hpp>
template <>
struct result_shape<PartialShape>
{
// typedefs
typedef PartialShape type;
};
struct ov::result_shape<ov::Shape>¶
Get correct result shape for ov::Shape which is same type.
#include <utils.hpp>
template <>
struct result_shape<ov::Shape>
{
// typedefs
typedef ov::Shape type;
};
struct ov::result_shape¶
Overview¶
Get correct return type of input shape when call shape_infer
. More…
#include <utils.hpp>
template <>
struct result_shape
{
// typedefs
typedef typename TShape::ShapeContainer type;
};
Detailed Documentation¶
Get correct return type of input shape when call shape_infer
.
The input shapes are vector like std::vector<TShape>, where TShape
can be std::vector<const size_t>
This will provide correct return especially for static shape which can work as reference to dimension or hold them.
Parameters:
TShape |
Type of input shape. |