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
8fa64880
Unverified
Commit
8fa64880
authored
Jul 23, 2019
by
Scott Cyphers
Committed by
GitHub
Jul 23, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' into cyphers/adjointout
parents
b7de39b4
42682914
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
46 additions
and
17 deletions
+46
-17
CMakeLists.txt
CMakeLists.txt
+2
-2
requirements.txt
python/requirements.txt
+2
-1
setup.py
python/setup.py
+4
-1
CMakeLists.txt
src/ngraph/runtime/plaidml/CMakeLists.txt
+8
-0
unit_test.manifest
src/ngraph/runtime/plaidml/unit_test.manifest
+0
-13
lrn.in.cpp
test/backend/lrn.in.cpp
+10
-0
sigmoid.in.cpp
test/backend/sigmoid.in.cpp
+10
-0
softmax.in.cpp
test/backend/softmax.in.cpp
+10
-0
No files found.
CMakeLists.txt
View file @
8fa64880
...
...
@@ -306,12 +306,12 @@ set(NGRAPH_INSTALL_DOC "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_DOCDIR}")
set
(
NGRAPH_INSTALL_BIN
"
${
CMAKE_INSTALL_PREFIX
}
/
${
CMAKE_INSTALL_BINDIR
}
"
)
if
(
LINUX
)
if
(
DEFINED NGRAPH_RPATH
)
set
(
CMAKE_BUILD_RPATH
"$ORIGIN:
${
NGRAPH_RPATH
}
"
)
set
(
CMAKE_INSTALL_RPATH
"$ORIGIN:
${
NGRAPH_RPATH
}
"
)
else
()
set
(
CMAKE_BUILD_RPATH
"$ORIGIN"
)
set
(
CMAKE_INSTALL_RPATH
"$ORIGIN"
)
endif
()
set
(
CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE
)
set
(
CMAKE_BUILD_WITH_INSTALL_RPATH TRUE
)
endif
()
#-----------------------------------------------------------------------------------------------
...
...
python/requirements.txt
View file @
8fa64880
six
numpy==1.15.4; python_version == "3.4"
numpy; python_version != "3.4"
numpy==1.16.4; python_version == "2.7"
numpy; python_version != "2.7" and python_version != "3.4"
typing
python/setup.py
View file @
8fa64880
...
...
@@ -369,6 +369,9 @@ class BuildExt(build_ext):
with
open
(
os
.
path
.
join
(
PYNGRAPH_ROOT_DIR
,
'requirements.txt'
))
as
req
:
requirements
=
req
.
read
()
.
splitlines
()
setup_requires
=
[
item
for
item
in
requirements
if
item
.
strip
()
.
startswith
(
'numpy'
)
]
setup
(
name
=
'ngraph-core'
,
...
...
@@ -385,7 +388,7 @@ setup(
packages
=
packages
,
cmdclass
=
{
'build_ext'
:
BuildExt
},
data_files
=
data_files
,
setup_requires
=
[
'numpy==1.16.4'
]
,
setup_requires
=
setup_requires
,
install_requires
=
requirements
,
zip_safe
=
False
,
extras_require
=
{
...
...
src/ngraph/runtime/plaidml/CMakeLists.txt
View file @
8fa64880
...
...
@@ -74,3 +74,11 @@ target_include_directories(plaidml_backend SYSTEM PUBLIC ${PLAIDML_INCLUDE_DIRS}
target_link_libraries
(
plaidml_backend PUBLIC ngraph libplaidml
)
install
(
TARGETS plaidml_backend LIBRARY DESTINATION
${
NGRAPH_INSTALL_LIB
}
)
set
(
CMAKE_MACOSX_RPATH 1
)
if
(
APPLE
)
set_property
(
TARGET plaidml_backend PROPERTY INSTALL_RPATH
"@loader_path/;@loader_path/../../.."
)
elseif
(
DEFINED NGRAPH_RPATH
)
set_property
(
TARGET plaidml_backend PROPERTY INSTALL_RPATH
"
\$
ORIGIN;
\$
ORIGIN/../../..;
${
NGRAPH_RPATH
}
"
)
else
()
set_property
(
TARGET plaidml_backend PROPERTY INSTALL_RPATH
"
\$
ORIGIN;
\$
ORIGIN/../../.."
)
endif
()
src/ngraph/runtime/plaidml/unit_test.manifest
View file @
8fa64880
...
...
@@ -315,16 +315,3 @@ avg_pool_3d_uneven_strided_padded
rnn_cell_activation_function
gru_cell_bias_clip
gru_cell_linear_before_reset
# After https://github.com/NervanaSystems/ngraph/pull/3262, these tests began
# failing with what appear to be precision issues. That PR simply split the
# old "backend_test.in.cpp" into multiple files. The only relevant side effect
# I can think of here is that the order of test execution changed as a result.
softmax_all
softmax_axis
softmax_underflow
softmax_overflow
sigmoid_n1c1h2w2
sigmoid_n1c1h4
sigmoid_bprop_n1c1h4
lrn
test/backend/lrn.in.cpp
View file @
8fa64880
...
...
@@ -14,6 +14,16 @@
// limitations under the License.
//*****************************************************************************
// clang-format off
#ifdef ${BACKEND_NAME}_FLOAT_TOLERANCE_BITS
#define DEFAULT_FLOAT_TOLERANCE_BITS ${BACKEND_NAME}_FLOAT_TOLERANCE_BITS
#endif
#ifdef ${BACKEND_NAME}_DOUBLE_TOLERANCE_BITS
#define DEFAULT_DOUBLE_TOLERANCE_BITS ${BACKEND_NAME}_DOUBLE_TOLERANCE_BITS
#endif
// clang-format on
#include "gtest/gtest.h"
#include "ngraph/ngraph.hpp"
#include "util/all_close.hpp"
...
...
test/backend/sigmoid.in.cpp
View file @
8fa64880
...
...
@@ -14,6 +14,16 @@
// limitations under the License.
//*****************************************************************************
// clang-format off
#ifdef ${BACKEND_NAME}_FLOAT_TOLERANCE_BITS
#define DEFAULT_FLOAT_TOLERANCE_BITS ${BACKEND_NAME}_FLOAT_TOLERANCE_BITS
#endif
#ifdef ${BACKEND_NAME}_DOUBLE_TOLERANCE_BITS
#define DEFAULT_DOUBLE_TOLERANCE_BITS ${BACKEND_NAME}_DOUBLE_TOLERANCE_BITS
#endif
// clang-format on
#include "gtest/gtest.h"
#include "ngraph/ngraph.hpp"
#include "util/all_close.hpp"
...
...
test/backend/softmax.in.cpp
View file @
8fa64880
...
...
@@ -14,6 +14,16 @@
// limitations under the License.
//*****************************************************************************
// clang-format off
#ifdef ${BACKEND_NAME}_FLOAT_TOLERANCE_BITS
#define DEFAULT_FLOAT_TOLERANCE_BITS ${BACKEND_NAME}_FLOAT_TOLERANCE_BITS
#endif
#ifdef ${BACKEND_NAME}_DOUBLE_TOLERANCE_BITS
#define DEFAULT_DOUBLE_TOLERANCE_BITS ${BACKEND_NAME}_DOUBLE_TOLERANCE_BITS
#endif
// clang-format on
#include "gtest/gtest.h"
#include "ngraph/ngraph.hpp"
#include "util/all_close.hpp"
...
...
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