Go to the documentation of this file.
16 buf.setLayer("fp16", [1.0, 1.2, 3.9, 5.5])
17 buf.setLayer("uint8", [6, 9, 4, 2, 0])
18 node.info("Names of layers: " + str(buf.getAllLayerNames()))
19 node.io['host'].send(buf)
25 script->outputs[
"host"].link(xout->input);
35 std::cout <<
"NNData size: " << nndata->
getData().size() << std::endl;
37 std::cout <<
"FP16 values: ";
38 for(
auto val : nndata->getLayerFp16(
"fp16")) {
41 std::cout << std::endl;
43 std::cout <<
"UINT8 values: ";
44 for(
auto val : nndata->getLayerUInt8(
"uint8")) {
47 std::cout << std::endl;
XLinkOut node. Sends messages over XLink.
Represents the pipeline, set of nodes and connections between them.
std::vector< std::uint8_t > & getData() const
Get non-owning reference to internal buffer.
void setLogLevel(LogLevel level)
void setLogOutputLevel(LogLevel level)
std::shared_ptr< DataOutputQueue > getOutputQueue(const std::string &name)
void setScript(const std::string &script, const std::string &name="")
std::shared_ptr< N > create()
std::string to_string(std::exception const &e)
void setStreamName(const std::string &name)
depthai
Author(s): Martin Peterlin
autogenerated on Sat Mar 22 2025 02:58:19