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

Method getWorkspaceSize

plugin/bertQKVToContextPlugin/qkvToContextPlugin.cpp:344–352  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

342}
343
344size_t QKVToContextPluginDynamic::getWorkspaceSize(PluginTensorDesc const* /*inputs*/, int32_t /*nbInputs*/,
345 PluginTensorDesc const* /*outputs*/, int32_t /*nbOutputs*/) const noexcept
346{
347 // only unfused kernel need workspace, and we need larger workspace for larger sequence length
348 // we have already setup unfusedDispatcher with max sequence in configurePlugin
349 // if unfusedDispatcher is not initialized in configurePlugin
350 PLUGIN_ASSERT(unfusedDispatcher.get());
351 return unfusedDispatcher->getWorkspaceSize();
352}
353
354// IPluginV2Ext Methods
355DataType QKVToContextPluginDynamic::getOutputDataType(

Callers 3

cloneMethod · 0.45
serializeMethod · 0.45
enqueueMethod · 0.45

Calls 1

getMethod · 0.45

Tested by

no test coverage detected