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

Method serialize

plugin/geluPlugin/geluPlugin.cpp:263–274  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

261}
262
263void GeluPluginDynamic::serialize(void* buffer) const noexcept
264{
265 serialize_value(&buffer, mType);
266 serialize_value(&buffer, mLd);
267 serialize_value(&buffer, mHasBias);
268 if (mHasBias)
269 {
270 PLUGIN_ASSERT(mLd > 0);
271 char* d = static_cast<char*>(buffer);
272 serFromDev(d, static_cast<char*>(mBiasDev.get()), mLd * getElementSize(mType));
273 }
274}
275
276void GeluPluginDynamic::destroy() noexcept
277{

Callers

nothing calls this directly

Calls 4

serialize_valueFunction · 0.85
serFromDevFunction · 0.85
getElementSizeFunction · 0.50
getMethod · 0.45

Tested by

no test coverage detected