diff --git a/ngraph/python/src/ngraph/utils/node_factory.py b/ngraph/python/src/ngraph/utils/node_factory.py index 67e1825a4b3..0809a55b4c5 100644 --- a/ngraph/python/src/ngraph/utils/node_factory.py +++ b/ngraph/python/src/ngraph/utils/node_factory.py @@ -1,6 +1,8 @@ # Copyright (C) 2018-2021 Intel Corporation # SPDX-License-Identifier: Apache-2.0 +import logging as log + from functools import partial from typing import Any, Dict, List, Optional, Union @@ -82,6 +84,9 @@ class NodeFactory(object): if issubclass(type(argument), Output): outputs.append(argument) else: + log.warning("Op arguments were passed as Node, please avoid passing arguments in " + "this manner, and pass Output(s) instead, because accepting Nodes will " + "be deprecated in a future release.") outputs.extend(argument.outputs()) return outputs