Skip to content
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

add status to message #36

Merged
merged 1 commit into from
Jul 4, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions menoh/mkldnn/model_core.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,9 @@ namespace menoh_impl {
}
} catch(mkldnn::error const& e) {
throw failed_to_configure_operator(
node.op_type, node.output_name_list.at(0), e.message);
node.op_type, node.output_name_list.at(0),
std::string("status: ") + std::to_string(e.status) +
", message: " + e.message);
}
}
return std::make_tuple(nets, variable_memory_table,
Expand Down Expand Up @@ -221,7 +223,9 @@ namespace menoh_impl {
.submit(nets_)
.wait();
} catch(mkldnn::error const& e) {
throw backend_error("mkldnn", e.message);
throw backend_error("mkldnn", std::string("status: ") +
std::to_string(e.status) +
", message: " + e.message);
}
}

Expand All @@ -244,7 +248,9 @@ namespace menoh_impl {
} catch(nlohmann::json::parse_error const& e) {
throw json_parse_error(e.what());
} catch(mkldnn::error const& e) {
throw backend_error("mkldnn", e.message);
throw backend_error("mkldnn", std::string("status: ") +
std::to_string(e.status) +
", message: " + e.message);
}
}

Expand Down