TensorRT 11.0 OSS Release (#4799)

Signed-off-by: Kevin Chen <kevinch@nvidia.com>
This commit is contained in:
Kevin Chen
2026-06-02 15:04:59 -07:00
committed by GitHub
parent 5302b288c5
commit 771d8efdf7
439 changed files with 9748 additions and 39439 deletions
@@ -22,6 +22,7 @@
#include <memory>
#include <numeric>
#include <stdexcept>
#include <string_view>
using namespace nvinfer1;
using namespace nvinfer1::pluginInternal;
@@ -30,6 +31,7 @@ using nvinfer1::plugin::GroupNormalizationPluginCreator;
namespace
{
using namespace std::string_view_literals;
constexpr char const* kGROUP_NORM_VERSION{"1"};
constexpr char const* kGROUP_NORM_NAME{"GroupNormalizationPlugin"};
} // namespace
@@ -402,12 +404,12 @@ IPluginV2DynamicExt* GroupNormalizationPluginCreator::createPlugin(
for (int32_t i = 0; i < fc->nbFields; i++)
{
PLUGIN_VALIDATE(fc->fields[i].name != nullptr);
std::string fieldName(fc->fields[i].name);
if (fieldName.compare("eps") == 0)
std::string_view const fieldName = fc->fields[i].name;
if (fieldName == "eps"sv)
{
epsilon = *static_cast<float const*>(fc->fields[i].data);
}
if (fieldName.compare("num_groups") == 0)
if (fieldName == "num_groups"sv)
{
nbGroups = *static_cast<int32_t const*>(fc->fields[i].data);
}