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
4552d024
Commit
4552d024
authored
Oct 24, 2018
by
mchrusci
Committed by
Michał Karzyński
Oct 24, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[ONNX CI] Update GitHub credentials (#1905)
parent
835ecad9
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
6 deletions
+10
-6
Jenkinsfile
.ci/onnx/jenkins/Jenkinsfile
+1
-1
test_basic.py
python/test/ngraph/test_basic.py
+5
-2
tox.ini
python/tox.ini
+4
-3
No files found.
.ci/onnx/jenkins/Jenkinsfile
View file @
4552d024
...
...
@@ -23,7 +23,7 @@ CI_ROOT = "ngraph/.ci/onnx/jenkins"
DOCKER_CONTAINER_NAME
=
"jenkins_${PROJECT_NAME}_ci"
NGRAPH_GIT_ADDRESS
=
"https://github.com/NervanaSystems/ngraph.git"
ONNX_GIT_ADDRESS
=
"https://github.com/NervanaSystems/ngraph-onnx.git"
JENKINS_GITHUB_CREDENTIAL_ID
=
"
6887a177-8c4d-4fe9-9c3b-fcd71b22bfba
"
JENKINS_GITHUB_CREDENTIAL_ID
=
"
7157091e-bc04-42f0-99fd-dc4da2922a55
"
ONNX_BRANCH
=
"$ghprbSourceBranch"
def
CloneRepository
(
String
jenkins_github_credential_id
,
String
ngraph_git_address
,
String
onnx_git_address
)
{
...
...
python/test/ngraph/test_basic.py
View file @
4552d024
...
...
@@ -219,8 +219,11 @@ def test_constant_get_data_signed_integer(data_type):
def
test_constant_get_data_unsigned_integer
(
data_type
):
np
.
random
.
seed
(
133391
)
input_data
=
np
.
random
.
randn
(
2
,
3
,
4
)
.
astype
(
data_type
)
input_data
=
(
np
.
iinfo
(
data_type
)
.
min
+
input_data
*
np
.
iinfo
(
data_type
)
.
max
+
input_data
*
np
.
iinfo
(
data_type
)
.
max
)
input_data
=
(
np
.
iinfo
(
data_type
)
.
min
+
input_data
*
np
.
iinfo
(
data_type
)
.
max
+
input_data
*
np
.
iinfo
(
data_type
)
.
max
)
node
=
ng
.
constant
(
input_data
,
dtype
=
data_type
)
retrieved_data
=
node
.
get_data
()
assert
np
.
allclose
(
input_data
,
retrieved_data
)
python/tox.ini
View file @
4552d024
...
...
@@ -23,7 +23,7 @@ deps =
commands
=
{envbindir}/python
setup.py
develop
flake8
{posargs:pyngraph/
ngraph/
examples/}
flake8
--ignore
=
D100,D101,D102,D103,D104,D105,D107 test/ # ignore lack of docs in tests
flake8
--ignore
=
D100,D101,D102,D103,D104,D105,D107
,W503
test/ # ignore lack of docs in tests
mypy
--config-file
=
tox.ini {posargs:pyngraph/ ngraph/ examples/} # Use MyPy in Python 3 only
pytest
{posargs:test/}
...
...
@@ -31,7 +31,7 @@ commands=
commands
=
{envbindir}/python
setup.py
develop
flake8
{posargs:pyngraph/
ngraph/
examples/}
flake8
--ignore
=
D100,D101,D102,D103,D104,D105,D107 test/ # ignore lack of docs in tests
flake8
--ignore
=
D100,D101,D102,D103,D104,D105,D107
,W503
test/ # ignore lack of docs in tests
pytest
{posargs:test/}
[testenv:devenv]
...
...
@@ -48,7 +48,8 @@ max-complexity=7
# D105 - Missing docstring in magic method
# D107 - Missing docstring in __init__
# F401 - module imported but unused
ignore
=
D100,D104,D105,D107,F401
# W503 - line break before binary operator (prefer line breaks before op, not after)
ignore
=
D100,D104,D105,D107,F401,W503
[mypy]
strict_optional
=
True
...
...
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