25 #ifndef NVNEURAL_LAYERDESCHOSTCONTAINER_H
26 #define NVNEURAL_LAYERDESCHOSTCONTAINER_H
41 bool m_validLayerDesc;
43 std::vector<ParamDesc> m_params;
44 std::vector<LayerInputDesc> m_inputs;
46 void LayerDescWarning(
const std::string& warningText)
const;
47 bool SanityCheckLayerDesc()
const;
48 bool ValidateAndLoadLayerDesc(
const LayerDesc* pInputLayerDesc);
50 bool ValidateAndLoadLayerParamDesc(
const ParamDesc* pInputParamDesc);
52 bool SanityCheckLayerInputDesc(
const LayerInputDesc& layerInputDesc)
const;
53 bool ValidateAndLoadLayerInputDesc(
const LayerInputDesc* pInputLayerInputDesc);
68 return m_validLayerDesc;
80 m_layerDesc.
pInputs = m_inputs.data();
Common helper classes and template function implementations.
Fundamental NvNeural data types are declared here.
"Host-native" container for LayerDesc structures from other modules.
Definition: LayerDescHostContainer.h:39
bool isValid() const
Returns true if the imported descriptor was valid.
Definition: LayerDescHostContainer.h:66
void linkVectors()
Once all sub-descriptors have been converted, call this to reconnect the parameter/input lists.
Definition: LayerDescHostContainer.h:78
const LayerDesc & get() const
Returns a reference to the converted/upgraded descriptor.
Definition: LayerDescHostContainer.h:72
This structure describes an ILayer for tools and network builders.
Definition: CoreTypes.h:1554
const ParamDesc * pParameters
This is the pointer to the array of ParamDesc structs.
Definition: CoreTypes.h:1626
const LayerInputDesc * pInputs
This is a pointer to the array of LayerInputDesc structs which define the inputs to this layer.
Definition: CoreTypes.h:1611
ParamDesc describes a parameter for the plugin, giving it a name, default value, type,...
Definition: CoreTypes.h:1449