Skip to content
Snippets Groups Projects
Commit 632f2c4b authored by kotsifa2's avatar kotsifa2
Browse files

Added a check for unknown approximation type in wrapper API implementation in tensor rt

parent 203d8627
No related branches found
No related tags found
No related merge requests found
......@@ -1673,6 +1673,10 @@ void* wrapper_ConvLayer(const char* hpvm_node_id,
pool_id, pool_size,
activation_id,
QRanges[6], QRanges[7], param);
} else {
CUSTOM_ASSERT(false && "Unknown approximation type");
ERROR("Unknown approximation type");
abort();
}
// TODO additional approx methods implemented here
......@@ -1870,6 +1874,10 @@ void* wrapper_FCLayer(const char* hpvm_node_id,
bias, QRanges[4], QRanges[5],
activation_id,
QRanges[6], QRanges[7], param);
} else {
CUSTOM_ASSERT(false && "Unknown approximation type");
ERROR("Unknown approximation type");
abort();
}
// TODO additional approx methods implemented here
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment