target_link_libraries(moco_service PRIVATE moco_support)
target_link_libraries(moco_service PRIVATE nncc_common)
target_link_libraries(moco_service PRIVATE stdex)
+target_link_libraries(moco_service PRIVATE oops)
install(TARGETS moco_service DESTINATION lib)
if(NOT ENABLE_TEST)
#include <loco/IR/NodeShape.h>
#include <loco/Service/ShapeInference.h>
+#include <oops/UserExn.h>
+
#include <cassert>
namespace
if (!axis_available)
{
// TODO may need to refine error message
- throw std::runtime_error("ConcatV2 node does not have axis input");
+ throw oops::UserExn("ConcatV2 node does not have axis input", node->name());
}
uint32_t axis_absolute = (axis_value >= 0) ? axis_value : (int32_t)a_rank + axis_value;
if (!is_valid_squeeze_dims())
{
- throw std::runtime_error("Fix shape for TFSqueeze: invalid squeeze dimension");
+ throw oops::UserExn("Invalid squeeze dimension", node->name());
}
// Resolve negative squeeze dimension