-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Optimize FC layer using TBB, update layer API to choose perf/reference implementation #143
base: main
Are you sure you want to change the base?
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #143 +/- ##
==========================================
- Coverage 87.71% 85.51% -2.21%
==========================================
Files 18 18
Lines 700 842 +142
Branches 372 448 +76
==========================================
+ Hits 614 720 +106
- Misses 48 52 +4
- Partials 38 70 +32 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
clang-tidy made some suggestions
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
clang-tidy made some suggestions
include/layers/Layer.hpp
Outdated
@@ -18,9 +19,11 @@ enum LayerType { | |||
kElementWise, | |||
kConvolution, | |||
kFullyConnected, | |||
kOutput, | |||
kOutput |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
kOutput | |
kOutput, |
std::cerr << "Normal:" << count1 << std::endl; | ||
double count2 = | ||
elapsed_time<double, std::milli>(test_func, p2, input, output); | ||
std::cerr << "Tbb:" << count2 << std::endl; | ||
// EXPECT_GE(count1, count2); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please clean up debug output and return back text check
std::cerr << tmp1[i] << ' ' << tmp2[i] << ' ' << i << std::endl; | ||
} | ||
} | ||
// EXPECT_GE(count1, count2); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same, please, enable the check and clean up debug output
…_2023 into neiroyt/feature18_tbbopt
Closes #125
Work in progress
By the way, on Windows TBB build itself in another directory, so run_test.exe can't find dlls