Commit f0283c6f authored by tsocha's avatar tsocha Committed by Scott Cyphers

[Py] change python loger names from __file__ to __name__ (#1260)

* Update input_validation.py

* Update runtime.py

* Update types.py

* Update broadcasting.py
parent 38ba5c12
...@@ -26,7 +26,7 @@ from ngraph.impl.op import Parameter ...@@ -26,7 +26,7 @@ from ngraph.impl.op import Parameter
from ngraph.utils.types import get_dtype, NumericData from ngraph.utils.types import get_dtype, NumericData
from ngraph.exceptions import UserInputError from ngraph.exceptions import UserInputError
log = logging.getLogger(__file__) log = logging.getLogger(__name__)
def runtime(backend_name='CPU'): # type: (str) -> 'Runtime' def runtime(backend_name='CPU'): # type: (str) -> 'Runtime'
......
...@@ -21,7 +21,7 @@ import ngraph as ng ...@@ -21,7 +21,7 @@ import ngraph as ng
from ngraph.impl import Node, AxisSet from ngraph.impl import Node, AxisSet
from ngraph.utils.types import TensorShape, get_dtype, make_constant_node, NodeInput from ngraph.utils.types import TensorShape, get_dtype, make_constant_node, NodeInput
log = logging.getLogger(__file__) log = logging.getLogger(__name__)
def get_broadcast_axes(output_shape, input_shape, axis=None): def get_broadcast_axes(output_shape, input_shape, axis=None):
......
...@@ -21,7 +21,7 @@ from typing import Iterable ...@@ -21,7 +21,7 @@ from typing import Iterable
from ngraph.exceptions import UserInputError from ngraph.exceptions import UserInputError
log = logging.getLogger(__file__) log = logging.getLogger(__name__)
def assert_list_of_ints(value_list, message): # type: (Iterable[int], str) -> None def assert_list_of_ints(value_list, message): # type: (Iterable[int], str) -> None
......
...@@ -27,7 +27,7 @@ from ngraph.impl.op import Constant ...@@ -27,7 +27,7 @@ from ngraph.impl.op import Constant
from ngraph.exceptions import NgraphTypeError from ngraph.exceptions import NgraphTypeError
log = logging.getLogger(__file__) log = logging.getLogger(__name__)
TensorShape = List[int] TensorShape = List[int]
NumericData = Union[int, float, np.ndarray] NumericData = Union[int, float, np.ndarray]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment