MCPcopy Create free account
hub / github.com/NVIDIA/TensorRT / getNbLayers

Method getNbLayers

include/NvInferRuntime.h:1727–1730  ·  view source on GitHub ↗

\brief Get the number of layers in the network. The number of layers in the network is not necessarily the number in the original network definition, as layers may be combined or eliminated as the engine is optimized. This value can be useful when building per-layer tables, such as when aggregating profiling data over a number of executions. \return The number of layers in the network.

Source from the content-addressed store, hash-verified

1725 //! \return The number of layers in the network.
1726 //!
1727 int32_t getNbLayers() const noexcept
1728 {
1729 return mImpl->getNbLayers();
1730 }
1731
1732 //!
1733 //! \brief Serialize the network to a stream.

Callers 13

pyGraph.cppFile · 0.45
setTensorDynamicRangeFunction · 0.45
setLayerPrecisionsFunction · 0.45
setLayerOutputTypesFunction · 0.45
setLayerDeviceTypesFunction · 0.45
setupNetworkAndConfigFunction · 0.45
timeRefitFunction · 0.45
sparsifyFunction · 0.45
setAllDynamicRangesFunction · 0.45
setLayerPrecisionMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected