INetworkLayer objects are ILayers that encapsulate an externally defined network graph.
More...
#include <NetworkLayer.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.
|
|
INetworkLayer objects are ILayers that encapsulate an externally defined network graph.
They do not actually contain an INetworkRuntime, but instead proxy their reshape/evaluate/etc. operations into an internally tracked list of ILayer objects.
◆ addFusingRuleToSubNetwork()
virtual NeuralResult nvneural::INetworkLayer::addFusingRuleToSubNetwork |
( |
const char * |
pFusingRule | ) |
|
|
pure virtualnoexcept |
◆ getFlattenSubNetworkLayerList()
virtual NeuralResult nvneural::INetworkLayer::getFlattenSubNetworkLayerList |
( |
ILayerList ** |
ppLayerList, |
|
|
size_t * |
pDepth |
|
) |
| const |
|
pure virtualnoexcept |
Returns a recursively flattened list of layers contained in the subgraph.
Input connection layers are internally aliases to external layers and as such are not represented in the returned list. Any network layers that are part of the subgraph are themselves flattened and included in the list.
- Parameters
-
ppLayerList | Pointer to a variable receiving a list of contained layers |
pDepth | Pointer to a variable receiving the maximum subgraph depth |
◆ getOutputs()
Returns a list of output layers defined in the subgraph.
- Parameters
-
ppLayerList | Pointer to a variable receiving a list of subgraph output layers |
- See also
- INetworkRuntime::getOutputLayers
The documentation for this class was generated from the following file: