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

Class PluginField

include/NvInferRuntimePlugin.h:754–783  ·  view source on GitHub ↗

\class PluginField \brief Structure containing plugin attribute field names and associated data This information can be parsed to decode necessary plugin metadata

Source from the content-addressed store, hash-verified

752//!
753//!
754class PluginField
755{
756public:
757 //!
758 //! \brief Plugin field attribute name
759 //!
760 AsciiChar const* name;
761 //!
762 //! \brief Plugin field attribute data
763 //!
764 void const* data;
765 //!
766 //! \brief Plugin field attribute type
767 //! \see PluginFieldType
768 //!
769 PluginFieldType type;
770 //!
771 //! \brief Number of data entries in the Plugin attribute
772 //!
773 int32_t length;
774
775 PluginField(AsciiChar const* const name_ = nullptr, void const* const data_ = nullptr,
776 PluginFieldType const type_ = PluginFieldType::kUNKNOWN, int32_t const length_ = 0) noexcept
777 : name(name_)
778 , data(data_)
779 , type(type_)
780 , length(length_)
781 {
782 }
783};
784
785//! Plugin field collection struct.
786struct PluginFieldCollection

Calls

no outgoing calls

Tested by

no test coverage detected