| 261 | } |
| 262 | |
| 263 | void 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 | |
| 276 | void GeluPluginDynamic::destroy() noexcept |
| 277 | { |
nothing calls this directly
no test coverage detected