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: ...@@ -43,7 +43,7 @@ class Runtime:
self.backend = Backend.create(backend_name) self.backend = Backend.create(backend_name)
def __repr__(self): # type: () -> str 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): def computation(self, node_or_function, *inputs):
# type: (Union[Node, Function], *Node) -> 'Computation' # type: (Union[Node, Function], *Node) -> 'Computation'
...@@ -120,7 +120,7 @@ class Computation(object): ...@@ -120,7 +120,7 @@ class Computation(object):
# type: (np.ndarray, Tensor) -> None # type: (np.ndarray, Tensor) -> None
tensor_view_dtype = get_dtype(tensor_view.element_type) tensor_view_dtype = get_dtype(tensor_view.element_type)
if list(tensor_view.shape) != list(value.shape) and len(value.shape) > 0: 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)) list(value.shape), list(tensor_view.shape))
if value.dtype != tensor_view_dtype: if value.dtype != tensor_view_dtype:
log.warning( log.warning(
......
...@@ -381,7 +381,7 @@ with open(os.path.join(PYNGRAPH_ROOT_DIR, 'requirements.txt')) as req: ...@@ -381,7 +381,7 @@ with open(os.path.join(PYNGRAPH_ROOT_DIR, 'requirements.txt')) as req:
setup( setup(
name='ngraph-core', 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__, version=__version__,
author='Intel Corporation', author='Intel Corporation',
author_email='intelnervana@intel.com', 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