NVIDIA NvNeural SDK
2022.2
GPU inference framework for NVIDIA Nsight Deep Learning Designer
|
Simple implementation of ILayerList. More...
#include <LayerList.h>
Public Member Functions | |
ILayer * | getLayerByIndex (size_t layerIndex) const noexcept |
Returns the Nth ILayer pointer in the collection. | |
size_t | layerCount () const noexcept |
Returns the number of layers in the collection. | |
LayerList (const std::vector< ILayer * > &layerList) | |
Initialize from a vector of raw pointers. More... | |
LayerList (const std::vector< RefPtr< ILayer >> &layerList) | |
Initialize from a vector of RefPtr (copy ctor). | |
LayerList (std::vector< RefPtr< ILayer >> &&layerList) | |
Initialize from a vector of RefPtr (move ctor). | |
![]() | |
IRefObject::RefCount | addRef () const noexcept |
Increment the object's reference count. More... | |
const void * | queryInterface (IRefObject::TypeId interfaceId) const noexcept |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. | |
void * | queryInterface (IRefObject::TypeId interfaceId) noexcept |
Retrieves a new object interface pointer. More... | |
RefObjectBase () | |
Default constructor. Logs object creation. | |
IRefObject::RefCount | release () const noexcept |
Decrements the object's reference count and destroys the object if the reference count reaches zero. More... | |
Simple implementation of ILayerList.
Can take a vector<RefPtr<ILayer>> or vector<ILayer*>, whichever is more convenient for the creator. Move construction is supported for vector<RefPtr<ILayer>>.
|
inlineexplicit |
Initialize from a vector of raw pointers.
Creates a new vector of RefPtr, incrementing references along the way.