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
fe89d17b
Commit
fe89d17b
authored
Aug 01, 2019
by
Robert Kimball
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update test case
parent
6ec45717
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
10 deletions
+5
-10
onnx_import_rnn.in.cpp
test/onnx/onnx_import_rnn.in.cpp
+5
-10
No files found.
test/onnx/onnx_import_rnn.in.cpp
View file @
fe89d17b
...
...
@@ -104,8 +104,7 @@ NGRAPH_TEST(onnx_${BACKEND_NAME}, model_lstm_fwd_with_clip)
// We have to enlarge tolerance bits to 3 - it's only one bit more than default value.
// The discrepancies may occur at most on 7th decimal position.
test_case
.
set_tolerance
(
3
);
test_case
.
run
();
test_case
.
run
(
DEFAULT_FLOAT_TOLERANCE_BITS
+
1
);
}
NGRAPH_TEST
(
onnx_
$
{
BACKEND_NAME
},
model_lstm_fwd_mixed_seq
)
...
...
@@ -144,8 +143,7 @@ NGRAPH_TEST(onnx_${BACKEND_NAME}, model_lstm_fwd_mixed_seq)
// We have to enlarge tolerance bits to 3 - it's only one bit more than default value.
// The discrepancies may occur at most on 7th decimal position.
test_case
.
set_tolerance
(
3
);
test_case
.
run
();
test_case
.
run
(
DEFAULT_FLOAT_TOLERANCE_BITS
+
1
);
}
NGRAPH_TEST
(
onnx_
$
{
BACKEND_NAME
},
model_lstm_fwd_hardsigmoid_activation
)
...
...
@@ -201,8 +199,7 @@ NGRAPH_TEST(onnx_${BACKEND_NAME}, model_lstm_fwd_hardsigmoid_activation)
test_case
.
add_expected_output
<
float
>
(
Shape
{
1
,
1
,
2
},
{
0.19017234
f
,
0.00356848
f
});
// The discrepancies occur at most at 18th mantissa bit - 8th decimal position.
test_case
.
set_tolerance
(
6
);
test_case
.
run
();
test_case
.
run
(
DEFAULT_FLOAT_TOLERANCE_BITS
+
4
);
}
NGRAPH_TEST
(
onnx_
$
{
BACKEND_NAME
},
model_lstm_fwd_large_batch_no_clip
)
...
...
@@ -307,8 +304,7 @@ NGRAPH_TEST(onnx_${BACKEND_NAME}, model_lstm_bdir_short_input_seq)
test_case
.
add_expected_output
<
float
>
(
Shape
{
2
,
1
,
2
},
{
-
0.0251062
f
,
0.0561262
f
,
-
0.0318928
f
,
0.0762679
f
});
test_case
.
set_tolerance
(
DEFAULT_FLOAT_TOLERANCE_BITS
+
3
);
test_case
.
run
();
test_case
.
run
(
DEFAULT_FLOAT_TOLERANCE_BITS
+
3
);
}
NGRAPH_TEST
(
onnx_
$
{
BACKEND_NAME
},
model_lstm_mixed_seq_reverse
)
...
...
@@ -353,6 +349,5 @@ NGRAPH_TEST(onnx_${BACKEND_NAME}, model_lstm_mixed_seq_reverse)
Shape
{
1
,
2
,
3
},
{
0.52497941
f
,
0.54983425
f
,
0.5744428
f
,
1.34960834
f
,
1.54772296
f
,
1.65633056
f
});
test_case
.
set_tolerance
(
DEFAULT_FLOAT_TOLERANCE_BITS
+
1
);
test_case
.
run
();
test_case
.
run
(
DEFAULT_FLOAT_TOLERANCE_BITS
+
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