TensorRT 11.5.0
nvinfer1::PluginField Class Reference

Class containing plugin attribute field names and associated data. More...

#include <NvInferPluginBase.h>

Public Member Functions

 PluginField (AsciiChar const *const name_=nullptr, void const *const data_=nullptr, PluginFieldType const type_=PluginFieldType::kUNKNOWN, int32_t const length_=0) noexcept
 Construct a PluginField with optional name, data, type, and length. More...
 

Public Attributes

AsciiChar const * name
 Plugin field attribute name. More...
 
void const * data
 Plugin field attribute data. More...
 
PluginFieldType type
 Plugin field attribute type. More...
 
int32_t length
 Number of data entries in the plugin attribute. More...
 

Detailed Description

Class containing plugin attribute field names and associated data.

This information can be parsed to decode necessary plugin metadata for custom layers.

Constructor & Destructor Documentation

◆ PluginField()

nvinfer1::PluginField::PluginField ( AsciiChar const *const  name_ = nullptr,
void const *const  data_ = nullptr,
PluginFieldType const  type_ = PluginFieldType::kUNKNOWN,
int32_t const  length_ = 0 
)
inlinenoexcept

Construct a PluginField with optional name, data, type, and length.

Initializes all members. The pointer arguments may be nullptr, and length may be zero.

Parameters
[in]name_Optional field name; nullptr if not set.
[in]data_Optional pointer to field data; nullptr if not set.
[in]type_Field type; defaults to PluginFieldType::kUNKNOWN.
[in]length_Number of data entries; defaults to zero.
Postcondition
All members are initialized from the corresponding constructor arguments.

Member Data Documentation

◆ data

void const* nvinfer1::PluginField::data

Plugin field attribute data.

◆ length

int32_t nvinfer1::PluginField::length

Number of data entries in the plugin attribute.

◆ name

AsciiChar const* nvinfer1::PluginField::name

Plugin field attribute name.

◆ type

PluginFieldType nvinfer1::PluginField::type

Plugin field attribute type.


The documentation for this class was generated from the following file:

  Copyright © 2024 NVIDIA Corporation
  Privacy Policy | Manage My Privacy | Do Not Sell or Share My Data | Terms of Service | Accessibility | Corporate Policies | Product Security | Contact