IActivationPlugin is an optional interface implemented by IPlugin objects that describes generic (non-fused) activation functions implemented inside the plugin.
More...
#include <nvneural/PluginTypes.h>
|
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.
|
|
IActivationPlugin is an optional interface implemented by IPlugin objects that describes generic (non-fused) activation functions implemented inside the plugin.
◆ getActivationDesc()
virtual const ActivationDesc* nvneural::IActivationPlugin::getActivationDesc |
( |
std::size_t |
activationIndex | ) |
const |
|
pure virtualnoexcept |
Returns a pointer to an ActivationDesc object by index.
- Parameters
-
activationIndex | Index to retrieve; must be less than the value of getActivationDesc |
- Returns
- A pointer to ActivationDesc that will remain valid through the lifespan of this object, or nullptr if activationIndex is out of bounds.
◆ getActivationDescCount()
virtual std::size_t nvneural::IActivationPlugin::getActivationDescCount |
( |
| ) |
const |
|
pure virtualnoexcept |
Returns the number of ActivationDesc 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: