Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
N
ngraph
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
ngraph
Commits
950fbf18
Unverified
Commit
950fbf18
authored
Apr 17, 2019
by
Scott Cyphers
Committed by
GitHub
Apr 17, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Migrate python changes from master (#2776)
parent
85884f32
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
runtime.py
python/ngraph/runtime.py
+2
-2
setup.py
python/setup.py
+1
-1
No files found.
python/ngraph/runtime.py
View file @
950fbf18
...
...
@@ -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
(
...
...
python/setup.py
View file @
950fbf18
...
...
@@ -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'
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment