IPluginV2DynamicExt Methods
| 403 | |
| 404 | // IPluginV2DynamicExt Methods |
| 405 | IPluginV2DynamicExt* FCPluginDynamic::clone() const noexcept |
| 406 | { |
| 407 | try |
| 408 | { |
| 409 | gLogVerbose << "FCPluginDynamic clone\n"; |
| 410 | |
| 411 | auto* p = new FCPluginDynamic(mLayerName, mType, mOutDim, mW); |
| 412 | memcpy(p->mAlgo.data, mAlgo.data, sizeof(mAlgo.data)); |
| 413 | p->setPluginNamespace(mNamespace.c_str()); |
| 414 | |
| 415 | return p; |
| 416 | } |
| 417 | catch (std::exception const& e) |
| 418 | { |
| 419 | caughtError(e); |
| 420 | } |
| 421 | return nullptr; |
| 422 | } |
| 423 | |
| 424 | void FCPluginDynamic::attachToContext( |
| 425 | cudnnContext* cudnnContext, cublasContext* cublasContext, nvinfer1::IGpuAllocator* gpuAllocator) noexcept |