NVIDIA NvNeural SDK  2022.2
GPU inference framework for NVIDIA Nsight Deep Learning Designer
nvneural::LayerList Class Reference

Simple implementation of ILayerList. More...

#include <LayerList.h>

Inheritance diagram for nvneural::LayerList:
nvneural::refobj::RefObjectBase< refobj::Implements< ILayerList > >

Public Member Functions

ILayergetLayerByIndex (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).
 
- Public Member Functions inherited from nvneural::refobj::RefObjectBase< refobj::Implements< ILayerList > >
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...
 

Detailed Description

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>>.

Constructor & Destructor Documentation

◆ LayerList()

nvneural::LayerList::LayerList ( const std::vector< ILayer * > &  layerList)
inlineexplicit

Initialize from a vector of raw pointers.

Creates a new vector of RefPtr, incrementing references along the way.


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