Skip to content

Commit

Permalink
Now get_floats throws an exception for unsupported types.
Browse files Browse the repository at this point in the history
  • Loading branch information
vgavrilo committed Oct 16, 2020
1 parent 8344cd1 commit e004a33
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ngraph/core/src/op/non_max_suppression.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
#include "ngraph/runtime/reference/non_max_suppression.hpp"
#include "ngraph/type/bfloat16.hpp"
#include "ngraph/type/float16.hpp"
#include "ngraph/util.hpp"

using namespace std;
using namespace ngraph;
Expand Down Expand Up @@ -805,7 +806,7 @@ namespace
memcpy(result.data(), p, input_size * sizeof(float));
}
break;
default:;
default: throw std::runtime_error("Unsupported data type in op NonMaxSuppression-5"); break;
}

return result;
Expand Down

0 comments on commit e004a33

Please sign in to comment.