Skip to content

Commit 7f6f4bd

Browse files
author
SzabolcsGergely
committed
Add check for 2 stage network
1 parent 251b4a7 commit 7f6f4bd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/nnet_packet_bindings.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ py::array* PyNNetPacket::getTensor(unsigned index)
218218
{
219219
if(_NN_config[index]["output_format"] != std::string("raw"))
220220
{
221-
assert(0 && "getTensor should be used only when [\"NN_config\"][\"output_format\"] is set to raw! https://docs.luxonis.com/api/#creating-blob-configuration-file");
221+
throw std::runtime_error("getTensor should be used only when [\"NN_config\"][\"output_format\"] is set to raw! https://docs.luxonis.com/api/#creating-blob-configuration-file");
222222
}
223223
}
224224
assert(index < _tensors_info.size());

0 commit comments

Comments
 (0)