Fixed some new warnings

This commit is contained in:
Ilya Churaev 2023-05-29 08:19:07 +04:00
parent 5ebb6f79bf
commit b3a22ddd56
3 changed files with 6 additions and 0 deletions

View File

@ -40,6 +40,8 @@ public:
};
}
~FactoryRegistry() = default;
/// \brief Register a custom factory for type_info
void register_factory(const typename BASE_TYPE::type_info_t& type_info, Factory factory) {
std::lock_guard<std::mutex> guard(get_registry_mutex());

View File

@ -19,6 +19,7 @@
#include "ngraph/axis_set.hpp"
#include "ngraph/shape.hpp"
NGRAPH_SUPPRESS_DEPRECATED_START
namespace ngraph {
//
// In various places, like ConstantFolding, it is
@ -66,3 +67,4 @@ NGRAPH_API_DEPRECATED SlicePlan NGRAPH_API make_slice_plan(const Shape& input_sh
} // namespace ngraph
using ngraph::make_slice_plan;
NGRAPH_SUPPRESS_DEPRECATED_END

View File

@ -51,6 +51,7 @@ namespace runtime {
class Tensor;
} // namespace runtime
NGRAPH_SUPPRESS_DEPRECATED_START
template <typename T>
NGRAPH_API_DEPRECATED std::string join(const T& v, const std::string& sep = ", ") {
std::ostringstream ss;
@ -351,3 +352,4 @@ std::vector<int64_t> NGRAPH_API read_index_vector(std::shared_ptr<ngraph::runtim
NGRAPH_API
NGRAPH_API_DEPRECATED
std::ostream& operator<<(std::ostream& os, const ngraph::NodeVector& nv);
NGRAPH_SUPPRESS_DEPRECATED_END