Unverified Commit 950fbf18 authored by Scott Cyphers's avatar Scott Cyphers Committed by GitHub

Migrate python changes from master (#2776)

parent 85884f32
......@@ -43,7 +43,7 @@ class Runtime:
self.backend = Backend.create(backend_name)
def __repr__(self): # type: () -> str
return '<Runtime: Backend=\'{}\'>'.format(self.backend_name)
return "<Runtime: Backend='{}'>".format(self.backend_name)
def computation(self, node_or_function, *inputs):
# type: (Union[Node, Function], *Node) -> 'Computation'
......@@ -120,7 +120,7 @@ class Computation(object):
# type: (np.ndarray, Tensor) -> None
tensor_view_dtype = get_dtype(tensor_view.element_type)
if list(tensor_view.shape) != list(value.shape) and len(value.shape) > 0:
raise UserInputError('Provided tensor\'s shape: %s does not match the expected: %s.',
raise UserInputError("Provided tensor's shape: %s does not match the expected: %s.",
list(value.shape), list(tensor_view.shape))
if value.dtype != tensor_view_dtype:
log.warning(
......
......@@ -381,7 +381,7 @@ with open(os.path.join(PYNGRAPH_ROOT_DIR, 'requirements.txt')) as req:
setup(
name='ngraph-core',
description='nGraph - Intel\'s graph compiler and runtime for Neural Networks',
description="nGraph - Intel's graph compiler and runtime for Neural Networks",
version=__version__,
author='Intel Corporation',
author_email='intelnervana@intel.com',
......
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