ILayerPlugin is an optional interface implemented by IPlugin objects that describes layers implemented inside the plugin.
More...
#include <nvneural/PluginTypes.h>
|
virtual const FusingRule * | getFusingRule (std::size_t fusingRuleIndex) const noexcept=0 |
| Returns an individual fusing rule by index. More...
|
|
virtual std::size_t | getFusingRuleCount () const noexcept=0 |
| Returns the number of fusing rules accessible through this interface. More...
|
|
virtual const LayerDesc * | getLayerDesc (std::size_t layerIndex) const noexcept=0 |
| Returns a pointer to a LayerDesc object by index. More...
|
|
virtual std::size_t | getLayerDescCount () const noexcept=0 |
| Returns the number of LayerDesc objects accessible through this interface. More...
|
|
virtual RefCount | addRef () const noexcept=0 |
| Increments the object's reference count. More...
|
|
virtual const void * | queryInterface (TypeId interface) const noexcept=0 |
| This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
|
|
virtual void * | queryInterface (TypeId interface) noexcept=0 |
| Retrieves a new object interface pointer. More...
|
|
virtual RefCount | release () const noexcept=0 |
| Decrements the object's reference count and destroy the object if the reference count reaches zero. More...
|
|
|
using | RefCount = std::uint32_t |
| Typedef used to track the number of active references to an object.
|
|
using | TypeId = std::uint64_t |
| Every interface must define a unique TypeId. This should be randomized.
|
|
virtual | ~IRefObject ()=default |
| A protected destructor prevents accidental stack-allocation of IRefObjects or use with other smart pointer classes like std::unique_ptr.
|
|
ILayerPlugin is an optional interface implemented by IPlugin objects that describes layers implemented inside the plugin.
◆ getFusingRule()
virtual const FusingRule* nvneural::ILayerPlugin::getFusingRule |
( |
std::size_t |
fusingRuleIndex | ) |
const |
|
pure virtualnoexcept |
Returns an individual fusing rule by index.
- Parameters
-
fusingRuleIndex | Index to retrieve; must be less than the value of getFusingRuleCount |
- Returns
- A pointer to FusingRule that will remain valid through the lifespan of this object, or nullptr if fusingRuleIndex is out of bounds.
◆ getFusingRuleCount()
virtual std::size_t nvneural::ILayerPlugin::getFusingRuleCount |
( |
| ) |
const |
|
pure virtualnoexcept |
Returns the number of fusing rules accessible through this interface.
The value returned by this function must remain constant throughout the lifespan of this plugin object.
◆ getLayerDesc()
virtual const LayerDesc* nvneural::ILayerPlugin::getLayerDesc |
( |
std::size_t |
layerIndex | ) |
const |
|
pure virtualnoexcept |
Returns a pointer to a LayerDesc object by index.
- Parameters
-
layerIndex | Index to retrieve; must be less than the value of getLayerDescCount |
- Returns
- A pointer to LayerDesc that will remain valid through the lifespan of this object, or nullptr if layerIndex is out of bounds.
◆ getLayerDescCount()
virtual std::size_t nvneural::ILayerPlugin::getLayerDescCount |
( |
| ) |
const |
|
pure virtualnoexcept |
Returns the number of LayerDesc objects accessible through this interface.
The value returned by this function must remain constant throughout the lifespan of this plugin object.
The documentation for this class was generated from the following file: