MCPcopy Create free account
hub / github.com/OAID/Tengine / GetDump

Method GetDump

executor/lib/node_ops.cpp:86–109  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

84}
85
86int NodeOps::GetDump(Node* node, void** buf, int buf_size)
87{
88 if(!dump_enabled)
89 {
90 set_tengine_errno(ENOTSUP);
91 return -1;
92 }
93
94 node_dump_lock.lock();
95
96 int num = dump_records.size();
97
98 if(num > buf_size)
99 num = buf_size;
100
101 for(int i = 0; i < num; i++)
102 {
103 buf[i] = ( void* )&dump_records[i];
104 }
105
106 node_dump_lock.unlock();
107
108 return num;
109}
110
111bool NodeOps::SaveDump(Node* node)
112{

Callers 1

OnGetNodeDumpAttrMethod · 0.80

Calls 2

set_tengine_errnoFunction · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected