DriveWorks SDK Reference
4.0.0 Release
For Test and Development only

samples/dnn/sample_dnn_plugin/README.md
Go to the documentation of this file.
1 # Copyright (c) 2019-2020 NVIDIA CORPORATION. All rights reserved.
2 
3 @page dwx_dnn_plugin_sample DNN Plugin Sample
4 @tableofcontents
5 
6 @section dwx_dnn_plugin_description Description
7 
8 The DNN Plugin sample loads and runs an MNIST network with a custom implementation of the max pooling layer.
9 
10 **PoolPlugin.cpp** implements this layer and defines the functions that are required by DriveWorks to load
11 a plugin. This file is then compiled as a shared library, which is then loaded by **sample_dnn_plugin** executable
12 at runtime.
13 
14 @section dwx_dnn_plugin_running Running the Sample
15 
16 The command line for the sample is:
17 
18  ./sample_dnn_plugin
19 
20 
21 Accepts the following optional parameters:
22 
23  ./sample_dnn_tensor --tensorRT_model=[path/to/TensorRT/model]
24 
25 Where:
26 
27  --tensorRT_model=[path/to/TensorRT/model]
28  Specifies the path to the NVIDIA<sup>&reg;</sup> TensorRT<sup>&trade;</sup>
29  model file.
30  The loaded network is expected to have a output blob named "prob".
31  Default value: path/to/data/samples/dnn/<gpu-architecture>/mnist.bin, where <gpu-architecture> can be `volta-discrete` or `volta-integrated` or `turing`.
32 
33 @note This sample loads mnist digit recognition network from:
34 
35 - data/samples/dnn/volta if the detected GPU has VOLTA architecture.
36 - data/samples/dnn/turing if the detected GPU has TURING architecture.
37 
38 @section dwx_dnn_plugin_output Output
39 
40 The sample creates a window, displays a white screen where a hand-drawn digit will be recognized via aforementioned MNIST network model.
41 
42 ![Digit being recognized using DNN with a plugin](sample_dnn_plugin.png)
43 
44 @section dwx_dnn_plugin_more Additional Information
45 
46 For more information, see @ref dwx_dnn_plugins.