MCPcopy Create free account
hub / github.com/NVIDIA/TensorRT / serialize

Method serialize

plugin/batchedNMSPlugin/batchedNMSPlugin.cpp:321–333  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

319}
320
321void BatchedNMSPlugin::serialize(void* buffer) const noexcept
322{
323 char *d = reinterpret_cast<char*>(buffer), *a = d;
324 write(d, param);
325 write(d, mBoxesSize);
326 write(d, mScoresSize);
327 write(d, mNumPriors);
328 write(d, mClipBoxes);
329 write(d, mPrecision);
330 write(d, mScoreBits);
331 write(d, mCaffeSemantics);
332 PLUGIN_ASSERT(d == a + getSerializationSize());
333}
334
335size_t BatchedNMSDynamicPlugin::getSerializationSize() const noexcept
336{

Callers

nothing calls this directly

Calls 1

writeFunction · 0.85

Tested by

no test coverage detected