Fixed error: expression result unused (#8862)

This commit is contained in:
Ilya Churaev 2021-11-27 15:54:35 +03:00 committed by GitHub
parent e76fc14ae1
commit 9b3e12006f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -133,7 +133,7 @@ void regclass_graph_Function(py::module m) {
}), }),
py::arg("results"), py::arg("results"),
py::arg("parameters"), py::arg("parameters"),
py::arg("name") = ""), py::arg("name") = "",
R"( R"(
Create user-defined Function which is a representation of a model Create user-defined Function which is a representation of a model
@ -147,7 +147,7 @@ void regclass_graph_Function(py::module m) {
name : str name : str
String to set as function's friendly name. String to set as function's friendly name.
)"; )");
function.def(py::init([](const ov::OutputVector& results, function.def(py::init([](const ov::OutputVector& results,
const std::vector<std::shared_ptr<ov::Node>>& nodes, const std::vector<std::shared_ptr<ov::Node>>& nodes,
@ -160,7 +160,7 @@ void regclass_graph_Function(py::module m) {
py::arg("results"), py::arg("results"),
py::arg("sinks"), py::arg("sinks"),
py::arg("parameters"), py::arg("parameters"),
py::arg("name") = ""), py::arg("name") = "",
R"( R"(
Create user-defined Function which is a representation of a model Create user-defined Function which is a representation of a model
@ -177,7 +177,7 @@ void regclass_graph_Function(py::module m) {
name : str name : str
String to set as function's friendly name. String to set as function's friendly name.
)"; )");
function.def(py::init([](const ov::ResultVector& results, function.def(py::init([](const ov::ResultVector& results,
const std::vector<std::shared_ptr<ov::Node>>& nodes, const std::vector<std::shared_ptr<ov::Node>>& nodes,
const ov::ParameterVector& parameters, const ov::ParameterVector& parameters,
@ -191,7 +191,7 @@ void regclass_graph_Function(py::module m) {
py::arg("sinks"), py::arg("sinks"),
py::arg("parameters"), py::arg("parameters"),
py::arg("variables"), py::arg("variables"),
py::arg("name") = ""), py::arg("name") = "",
R"( R"(
Create user-defined Function which is a representation of a model Create user-defined Function which is a representation of a model
@ -211,7 +211,7 @@ void regclass_graph_Function(py::module m) {
name : str name : str
String to set as function's friendly name. String to set as function's friendly name.
)"; )");
function.def(py::init([](const ov::OutputVector& results, function.def(py::init([](const ov::OutputVector& results,
const std::vector<std::shared_ptr<ov::Node>>& nodes, const std::vector<std::shared_ptr<ov::Node>>& nodes,
@ -226,7 +226,7 @@ void regclass_graph_Function(py::module m) {
py::arg("sinks"), py::arg("sinks"),
py::arg("parameters"), py::arg("parameters"),
py::arg("variables"), py::arg("variables"),
py::arg("name") = ""), py::arg("name") = "",
R"( R"(
Create user-defined Function which is a representation of a model Create user-defined Function which is a representation of a model
@ -246,7 +246,7 @@ void regclass_graph_Function(py::module m) {
name : str name : str
String to set as function's friendly name. String to set as function's friendly name.
)"; )");
function.def(py::init([](const ov::ResultVector& results, function.def(py::init([](const ov::ResultVector& results,
const ov::ParameterVector& parameters, const ov::ParameterVector& parameters,
@ -258,7 +258,7 @@ void regclass_graph_Function(py::module m) {
py::arg("results"), py::arg("results"),
py::arg("parameters"), py::arg("parameters"),
py::arg("variables"), py::arg("variables"),
py::arg("name") = ""), py::arg("name") = "",
R"( R"(
Create user-defined Function which is a representation of a model Create user-defined Function which is a representation of a model
@ -275,7 +275,7 @@ void regclass_graph_Function(py::module m) {
name : str name : str
String to set as function's friendly name. String to set as function's friendly name.
)"; )");
function.def(py::init([](const ov::OutputVector& results, function.def(py::init([](const ov::OutputVector& results,
const ov::ParameterVector& parameters, const ov::ParameterVector& parameters,
@ -287,7 +287,7 @@ void regclass_graph_Function(py::module m) {
py::arg("results"), py::arg("results"),
py::arg("parameters"), py::arg("parameters"),
py::arg("variables"), py::arg("variables"),
py::arg("name") = ""), py::arg("name") = "",
R"( R"(
Create user-defined Function which is a representation of a model Create user-defined Function which is a representation of a model
@ -304,7 +304,7 @@ void regclass_graph_Function(py::module m) {
name : str name : str
String to set as function's friendly name. String to set as function's friendly name.
)"; )");
function.def("validate_nodes_and_infer_types", &ov::Function::validate_nodes_and_infer_types); function.def("validate_nodes_and_infer_types", &ov::Function::validate_nodes_and_infer_types);