We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the bug Looks like Unit test ResultCheck only checks the first element
T* out_data = reinterpret_cast<T*>(out[i]); size_t elem_size = sizeof(out_data) / sizeof(T); ===> elem_size is 1 ? for (size_t j = 0; j < elem_size; ++j) { bool nan_mismatch = (isnan(out_data[j]) ^ isnan(out_ref_data[j])); if (nan_mismatch || fabs(out_data[j] - out_ref_data[j]) > thre) { #if DEBUG_PRINT oss << " result: FAIL [" << i <<", "<< j << "]: " << out_data[j] << " expects: " << out_ref_data[j] << "\n"; outfile << oss.str(); outfile.close();
The text was updated successfully, but these errors were encountered:
fixed
Sorry, something went wrong.
xuhongyao
Successfully merging a pull request may close this issue.
Describe the bug
Looks like Unit test ResultCheck only checks the first element
T* out_data = reinterpret_cast<T*>(out[i]);
size_t elem_size = sizeof(out_data) / sizeof(T); ===> elem_size is 1 ?
for (size_t j = 0; j < elem_size; ++j) {
bool nan_mismatch = (isnan(out_data[j]) ^ isnan(out_ref_data[j]));
if (nan_mismatch || fabs(out_data[j] - out_ref_data[j]) > thre) {
#if DEBUG_PRINT
oss << " result: FAIL [" << i <<", "<< j << "]: " << out_data[j]
<< " expects: " << out_ref_data[j] << "\n";
outfile << oss.str();
outfile.close();
The text was updated successfully, but these errors were encountered: