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
8bd37070
Commit
8bd37070
authored
5 years ago
by
Robert Kimball
Committed by
Scott Cyphers
5 years ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix tolerance for all_close_f (#4042)
* Fix tolerance for all_close_f * Lower tolerance * use all_close
parent
cef0508b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
layer_norm.in.cpp
test/backend/layer_norm.in.cpp
+3
-3
No files found.
test/backend/layer_norm.in.cpp
View file @
8bd37070
...
...
@@ -247,7 +247,7 @@ NGRAPH_TEST(${BACKEND_NAME}, layer_norm_bprop_4d_input)
vector
<
float
>
expected_scale
(
60
,
0
);
vector
<
float
>
expected_bias
(
60
,
2
);
EXPECT_TRUE
(
test
::
all_close
_f
(
expected_data
,
read_vector
<
float
>
(
d_data
),
1e-6
f
,
1e-6
f
));
EXPECT_TRUE
(
test
::
all_close
_f
(
expected_scale
,
read_vector
<
float
>
(
d_scale
),
1e-6
f
,
1e-6
f
));
EXPECT_TRUE
(
test
::
all_close
_f
(
expected_bias
,
read_vector
<
float
>
(
d_bias
),
1e-6
f
,
1e-6
f
));
EXPECT_TRUE
(
test
::
all_close
(
expected_data
,
read_vector
<
float
>
(
d_data
),
1e-5
f
,
1e-6
f
));
EXPECT_TRUE
(
test
::
all_close
(
expected_scale
,
read_vector
<
float
>
(
d_scale
),
1e-5
f
,
1e-6
f
));
EXPECT_TRUE
(
test
::
all_close
(
expected_bias
,
read_vector
<
float
>
(
d_bias
),
1e-5
f
,
1e-6
f
));
}
This diff is collapsed.
Click to expand it.
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