Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tic
Overview
Overview
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wenyuanbo
tic
Commits
561e422b
Commit
561e422b
authored
Apr 16, 2019
by
hlu1
Committed by
Tianqi Chen
Apr 16, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add caffe2 nnvm frontend to CI (#3018)
parent
faf6806f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
9 deletions
+11
-9
nnvm/tests/python/frontend/caffe2/test_forward.py
+6
-7
tests/scripts/task_python_frontend.sh
+5
-2
No files found.
nnvm/tests/python/frontend/caffe2/test_forward.py
View file @
561e422b
...
...
@@ -45,7 +45,6 @@ def get_tvm_output(model,
graph
,
lib
,
params
=
nnvm
.
compiler
.
build
(
sym
,
target
,
shape
=
shape_dict
,
dtype
=
dtype_dict
,
params
=
params
)
ctx
=
tvm
.
cpu
(
0
)
m
=
graph_runtime
.
create
(
graph
,
lib
,
ctx
)
# set inputs
...
...
@@ -89,21 +88,21 @@ def verify_caffe2_forward_impl(model, data_shape, out_shape):
tvm
.
testing
.
assert_allclose
(
c2_out
,
tvm_out
,
rtol
=
1e-5
,
atol
=
1e-5
)
def
verify
_squeezenet1_1
():
def
test
_squeezenet1_1
():
verify_caffe2_forward_impl
(
c2_squeezenet
,
(
1
,
3
,
224
,
224
),
(
1
,
1000
,
1
,
1
))
def
verify
_resnet50
():
def
test
_resnet50
():
verify_caffe2_forward_impl
(
c2_resnet50
,
(
1
,
3
,
224
,
224
),
(
1
,
1000
))
def
verify
_vgg19
():
def
test
_vgg19
():
verify_caffe2_forward_impl
(
c2_vgg19
,
(
1
,
3
,
224
,
224
),
(
1
,
1000
))
if
__name__
==
'__main__'
:
verify
_squeezenet1_1
()
verify
_resnet50
()
verify
_vgg19
()
test
_squeezenet1_1
()
test
_resnet50
()
test
_vgg19
()
tests/scripts/task_python_frontend.sh
View file @
561e422b
...
...
@@ -6,9 +6,9 @@
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
#
# http://www.apache.org/licenses/LICENSE-2.0
#
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
...
...
@@ -50,6 +50,9 @@ python3 -m nose -v nnvm/tests/python/frontend/tensorflow
echo
"Running nnvm CoreML frontend test..."
python3
-m
nose
-v
nnvm/tests/python/frontend/coreml
echo
"Running nnvm Caffe2 frontend test..."
python3
-m
nose
-v
nnvm/tests/python/frontend/caffe2
echo
"Running nnvm DarkNet frontend test..."
python3
-m
nose
-v
nnvm/tests/python/frontend/darknet
||
exit
-1
...
...
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