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

Method clone

plugin/fcPlugin/fcPlugin.cpp:405–422  ·  view source on GitHub ↗

IPluginV2DynamicExt Methods

Source from the content-addressed store, hash-verified

403
404// IPluginV2DynamicExt Methods
405IPluginV2DynamicExt* 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
424void FCPluginDynamic::attachToContext(
425 cudnnContext* cudnnContext, cublasContext* cublasContext, nvinfer1::IGpuAllocator* gpuAllocator) noexcept

Calls 3

caughtErrorFunction · 0.85
c_strMethod · 0.80
setPluginNamespaceMethod · 0.45