thaint2901 / sample_onnx

Repository from Github https://github.comthaint2901/sample_onnxRepository from Github https://github.comthaint2901/sample_onnx

Sample help better understand trt

Build

mkdir build && cd build
cmake -DCMAKE_CUDA_FLAGS="--expt-extended-lambda -std=c++14" ..

Export

./export ../pretrained/mnist.onnx ../pretrained/mnist.plan

Infer

./infer pretrained/mnist.plan data/9.pgm

About


Languages

Language:C++ 71.1%Language:Python 20.2%Language:CMake 8.7%