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
c827ecfb
Commit
c827ecfb
authored
Jan 23, 2019
by
Adam Rogowiec
Committed by
Robert Kimball
Jan 23, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use appropriate function to test NAN. (#2332)
parent
9799e2a4
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
util.cpp
src/ngraph/util.cpp
+2
-2
No files found.
src/ngraph/util.cpp
View file @
c827ecfb
...
...
@@ -440,7 +440,7 @@ void ngraph::check_fp_values_isnan(const char* name, const float* array, size_t
{
for
(
size_t
i
=
0
;
i
<
n
;
i
++
)
{
if
(
std
::
is
inf
(
array
[
i
]))
if
(
std
::
is
nan
(
array
[
i
]))
{
throw
std
::
runtime_error
(
"Discovered NaN in '"
+
string
(
name
)
+
"'"
);
}
...
...
@@ -451,7 +451,7 @@ void ngraph::check_fp_values_isnan(const char* name, const double* array, size_t
{
for
(
size_t
i
=
0
;
i
<
n
;
i
++
)
{
if
(
std
::
is
inf
(
array
[
i
]))
if
(
std
::
is
nan
(
array
[
i
]))
{
throw
std
::
runtime_error
(
"Discovered NaN in '"
+
string
(
name
)
+
"'"
);
}
...
...
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