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
36cf8fe0
Unverified
Commit
36cf8fe0
authored
Apr 02, 2019
by
Scott Cyphers
Committed by
GitHub
Apr 02, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Migrate klocwork fixes from r0.17 (#2700)
parent
7ae82a50
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
8 deletions
+11
-8
all_close_f.cpp
test/all_close_f.cpp
+4
-4
cpu_debugger.cpp
test/cpu_debugger.cpp
+7
-4
No files found.
test/all_close_f.cpp
View file @
36cf8fe0
...
...
@@ -192,8 +192,8 @@ protected:
float
lower_bound
;
float
past_upper_bound
;
float
past_lower_bound
;
float
min_signal_too_low
;
float
min_signal_enables_passing
;
float
min_signal_too_low
{
0
}
;
float
min_signal_enables_passing
{
0
}
;
};
TEST_P
(
all_close_f_param_test
,
test_boundaries
)
...
...
@@ -349,8 +349,8 @@ protected:
double
lower_bound
;
double
past_upper_bound
;
double
past_lower_bound
;
double
min_signal_too_low
;
double
min_signal_enables_passing
;
double
min_signal_too_low
{
0
}
;
double
min_signal_enables_passing
{
0
}
;
};
TEST_P
(
all_close_f_double_param_test
,
test_boundaries
)
...
...
test/cpu_debugger.cpp
View file @
36cf8fe0
...
...
@@ -40,12 +40,15 @@ using namespace std;
bool
static
is_codegen_mode
()
{
if
(
std
::
getenv
(
"NGRAPH_CODEGEN"
)
!=
nullptr
&&
std
::
string
(
std
::
getenv
(
"NGRAPH_CODEGEN"
))
!=
"0"
)
static
bool
codegen_set
=
false
;
static
bool
codegen_mode
=
false
;
if
(
!
codegen_set
)
{
return
true
;
const
char
*
ngraph_codegen
=
std
::
getenv
(
"NGRAPH_CODEGEN"
);
codegen_mode
=
(
ngraph_codegen
!=
nullptr
)
&&
std
::
string
(
ngraph_codegen
)
!=
"0"
;
codegen_set
=
true
;
}
return
fals
e
;
return
codegen_mod
e
;
}
// These tests are for DEX mode only.
...
...
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