Skip to content
This repository was archived by the owner on Jan 3, 2023. It is now read-only.

Commit 950fbf1

Browse files
authored
Migrate python changes from master (#2776)
1 parent 85884f3 commit 950fbf1

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

python/ngraph/runtime.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def __init__(self, backend_name): # type: (str) -> None
4343
self.backend = Backend.create(backend_name)
4444

4545
def __repr__(self): # type: () -> str
46-
return '<Runtime: Backend=\'{}\'>'.format(self.backend_name)
46+
return "<Runtime: Backend='{}'>".format(self.backend_name)
4747

4848
def computation(self, node_or_function, *inputs):
4949
# type: (Union[Node, Function], *Node) -> 'Computation'
@@ -120,7 +120,7 @@ def _write_ndarray_to_tensor_view(value, tensor_view):
120120
# type: (np.ndarray, Tensor) -> None
121121
tensor_view_dtype = get_dtype(tensor_view.element_type)
122122
if list(tensor_view.shape) != list(value.shape) and len(value.shape) > 0:
123-
raise UserInputError('Provided tensor\'s shape: %s does not match the expected: %s.',
123+
raise UserInputError("Provided tensor's shape: %s does not match the expected: %s.",
124124
list(value.shape), list(tensor_view.shape))
125125
if value.dtype != tensor_view_dtype:
126126
log.warning(

python/setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,7 @@ def build_extensions(self):
381381

382382
setup(
383383
name='ngraph-core',
384-
description='nGraph - Intel\'s graph compiler and runtime for Neural Networks',
384+
description="nGraph - Intel's graph compiler and runtime for Neural Networks",
385385
version=__version__,
386386
author='Intel Corporation',
387387
author_email='[email protected]',

0 commit comments

Comments
 (0)