-
Notifications
You must be signed in to change notification settings - Fork 233
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
KernelTuningNet for CK [Update CK Fwd, CK Wrw + New integration CK Bwd] #3464
base: develop
Are you sure you want to change the base?
Conversation
features[0] = 0.0; | ||
features[n + 1] = problem.GetOutChannels(); | ||
features[2 * n + 2] = problem.GetOutHeight(); | ||
features[3 * n + 3] = problem.GetOutWidth(); | ||
features[4 * n + 4] = problem.GetInChannels(); | ||
features[5 * n + 5] = problem.GetInHeight(); | ||
features[6 * n + 6] = problem.GetInWidth(); | ||
features[7 * n + 7] = problem.GetWeightsHeight(); | ||
features[8 * n + 8] = problem.GetWeightsWidth(); | ||
features[9 * n + 9] = problem.GetPadH(); | ||
features[10 * n + 10] = problem.GetPadW(); | ||
features[11 * n + 11] = problem.GetKernelStrideH(); | ||
features[12 * n + 12] = problem.GetKernelStrideW(); | ||
features[13 * n + 13] = problem.GetDilationH(); | ||
features[14 * n + 14] = problem.GetDilationW(); | ||
features[15 * n + 15] = problem.GetBatchSize(); | ||
features[16 * n + 16] = problem.GetInDataType() == miopenFloat ? 2.0 : 1.0; | ||
features[17 * n + 17] = problem.GetGroupCount(); |
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.
For the other arch's, it looks like it's flipping the in/out depending on direction, but not for gfx90a.
Is that intentional?
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.
I suspect that gfx90a should also be flipping in/out based on direction.
//std::cout << "\nBEFORE REMOVING\n"; | ||
//for (auto i: heuristic_indexes) { | ||
// for (auto x: heuristic_kernels[heuristic_indexes[i]]) | ||
// std::cout << x << " "; | ||
// std::cout << "\n"; | ||
//} |
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.
Commented out code could be removed.
std::cout << "\nAFTER REMOVING\n"; | ||
for (auto i: heuristic_indexes) { | ||
for (auto x: heuristic_kernels[heuristic_indexes[i]]) | ||
std::cout << x << " "; | ||
std::cout << "\n"; | ||
std::cout << valid_kernels[heuristic_indexes[i]]; | ||
std::cout << "\n"; | ||
} | ||
std::cout << "\n"; |
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.
Should this be removed, or made into logging statements maybe?
std::cout << "\n"; | ||
std::cout << i; | ||
std::cout << " " + std::to_string(token) + " " + value; | ||
//std::cout << "\nTOKEN SCORES"; | ||
//for(int j = 0; j < token_scores.size(); j++) { | ||
// std::cout << token_scores[j] << " "; | ||
//} | ||
//std::cout << std::endl; |
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.
Commented out code, and cout.
Should this be removed, or made into logging statements?
std::cout << "\nFeatures: "; | ||
for (int i = 0; i < 17; ++i) | ||
std::cout << features[i * 17 + i] << ", "; | ||
std::cout << "\n"; |
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.
Commented out code, and cout.
Should this be removed, or made into logging statements?
std::cout << "\n PREDICT TYPE: " << model->metadata.predict_type << "\n"; | ||
|
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.
Should this be removed, or made into logging statements?
Looks like the build is failing on formatting check. Need to run the formatting script:
|
No description provided.