DriveWorks SDK Reference
3.0.4260 Release
For Test and Development only

DNN Plugin Sample
Note
SW Release Applicability: This sample is available in both NVIDIA DriveWorks and NVIDIA DRIVE Software releases.

Description

The DNN Plugin sample loads and runs an MNIST network with a custom implementation of the layer named ip2.

FCCLayer.cpp implements this layer and defines the functions that are required by DriveWorks to load a plugin. This file is then compiled as a shared library, which is then loaded by sample_dnn_plugin executable at runtime.

Running the Sample

The command line for the sample is:

./sample_dnn_plugin
Note
This sample loads mnist digit recognition network from:
  • data/samples/dnn/pascal if the detected GPU has PASCAL architecture.
  • data/samples/dnn/volta if the detected GPU has VOLTA architecture.

Output

The sample creates a window, displays a white screen where a hand-drawn digit will be recognized via aforementioned MNIST network model.

sample_dnn_plugin.png
Digit being recognized using DNN with a plugin

Additional Information

For more information, see DNN Plugins.