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
9d57eee5
Unverified
Commit
9d57eee5
authored
Apr 17, 2018
by
Robert Kimball
Committed by
GitHub
Apr 17, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
reenable unit test (#869)
* reenable unit test
parent
547f0524
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
21 deletions
+1
-21
convolution_test.in.cpp
test/convolution_test.in.cpp
+0
-0
generate_convolution_ref.py
test/ref_generators/generate_convolution_ref.py
+1
-21
No files found.
test/convolution_test.in.cpp
View file @
9d57eee5
This diff is collapsed.
Click to expand it.
test/ref_generators/generate_convolution_ref.py
View file @
9d57eee5
...
...
@@ -249,7 +249,7 @@ TEST (${BACKEND_NAME}, %s)
vector<float> expected_result{
%
s};
backend->call(function, {result}, {a, b});
EXPECT_TRUE(
all_close<float>(vector<float>{expected_result}, read_vector<float>(result)
));
EXPECT_TRUE(
test::all_close<float>(vector<float>{expected_result}, read_vector<float>(result), 1.0e-4f, 1.0e-6f
));
// only test backprop for certain cases as it takes significant compute resources
if(
%
s) {
EXPECT_TRUE(autodiff_numeric_compare<float>(backend, make_graph, {a, b}, .01f, .01f));
...
...
@@ -368,26 +368,6 @@ def main():
using namespace std;
using namespace ngraph;
template<typename T>
static bool all_close(const std::vector<T>& a,
const std::vector<T>& b,
T rtol = T(1e-4),
T atol = T(1e-7))
{
assert(a.size() == b.size());
bool rc = true;
for (size_t i = 0; i < a.size(); ++i)
{
if (std::abs(a[i] - b[i]) > atol + rtol * std::abs(b[i]))
{
rc = false;
}
}
return rc;
}
'''
)
for
t
in
tests
:
...
...
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