OpenVINO 2022.1 has introduced OpenVINO API 2.0. For more information on transition steps from the previous API, see the transition guide
namespace shape_of { // global functions template <class TShape, class TRShape = result_shape_t<TShape>> std::vector<TRShape> shape_infer( const Node \* op, std::vector<TShape> input_shapes ); } // namespace shape_of