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
abdd9c0b
Commit
abdd9c0b
authored
Jun 28, 2019
by
Adam Rogowiec
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
UT reproducing failing case on INTERPRETER backend.
parent
c36e4980
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
109 additions
and
0 deletions
+109
-0
w.bin
test/files/onnx/convtranspose_output_shape/w.bin
+0
-0
x.bin
test/files/onnx/convtranspose_output_shape/x.bin
+0
-0
y.bin
test/files/onnx/convtranspose_output_shape/y.bin
+0
-0
convtranspose_output_shape.prototxt
test/models/onnx/convtranspose_output_shape.prototxt
+92
-0
onnx_import_convpool.in.cpp
test/onnx/onnx_import_convpool.in.cpp
+17
-0
No files found.
test/files/onnx/convtranspose_output_shape/w.bin
0 → 100644
View file @
abdd9c0b
File added
test/files/onnx/convtranspose_output_shape/x.bin
0 → 100644
View file @
abdd9c0b
File added
test/files/onnx/convtranspose_output_shape/y.bin
0 → 100644
View file @
abdd9c0b
File added
test/models/onnx/convtranspose_output_shape.prototxt
0 → 100644
View file @
abdd9c0b
ir_version: 3
producer_name: "backend-test"
graph {
node {
input: "X"
input: "W"
output: "Y"
op_type: "ConvTranspose"
attribute {
name: "output_shape"
ints: 10
ints: 8
type: INTS
}
attribute {
name: "strides"
ints: 3
ints: 2
type: INTS
}
}
name: "test_convtranspose_output_shape"
input {
name: "X"
type {
tensor_type {
elem_type: 1
shape {
dim {
dim_value: 1
}
dim {
dim_value: 1
}
dim {
dim_value: 3
}
dim {
dim_value: 3
}
}
}
}
}
input {
name: "W"
type {
tensor_type {
elem_type: 1
shape {
dim {
dim_value: 1
}
dim {
dim_value: 2
}
dim {
dim_value: 3
}
dim {
dim_value: 3
}
}
}
}
}
output {
name: "Y"
type {
tensor_type {
elem_type: 1
shape {
dim {
dim_value: 1
}
dim {
dim_value: 2
}
dim {
dim_value: 10
}
dim {
dim_value: 8
}
}
}
}
}
}
opset_import {
version: 9
}
test/onnx/onnx_import_convpool.in.cpp
View file @
abdd9c0b
...
...
@@ -30,6 +30,7 @@
#include "util/all_close.hpp"
#include "util/all_close_f.hpp"
#include "util/ndarray.hpp"
#include "util/test_case.hpp"
#include "util/test_control.hpp"
#include "util/test_tools.hpp"
...
...
@@ -409,3 +410,19 @@ NGRAPH_TEST(onnx_${BACKEND_NAME}, model_global_lp_pool_p3)
EXPECT_TRUE
(
test
::
all_close_f
(
expected_outputs
.
front
(),
outputs
.
front
()));
}
NGRAPH_TEST
(
onnx_
$
{
BACKEND_NAME
},
model_convtranspose_output_shape
)
{
auto
conv_transpose_fn
=
onnx_import
::
import_onnx_model
(
file_util
::
path_join
(
SERIALIZED_ZOO
,
"onnx/convtranspose_output_shape.prototxt"
));
auto
test_case
=
ngraph
::
test
::
NgraphTestCase
(
conv_transpose_fn
,
"${BACKEND_NAME}"
);
test_case
.
add_input_from_file
<
float
>
(
TEST_FILES
,
"onnx/convtranspose_output_shape/x.bin"
);
test_case
.
add_input_from_file
<
float
>
(
TEST_FILES
,
"onnx/convtranspose_output_shape/w.bin"
);
test_case
.
add_expected_output_from_file
<
float
>
(
{
1
,
2
,
10
,
8
},
TEST_FILES
,
"onnx/convtranspose_output_shape/y.bin"
);
test_case
.
dump_results
();
test_case
.
run
();
}
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