The following table lists the samples mentioned in this document. Visit the Ascend samples repository on Gitee or GitHub for additional samples.
Sample |
How to Obtain |
Description |
Build and Run (Standard Ascend EP)(Ascend RC) |
|---|---|---|---|
gemm |
Go to the Ascend samples repository on Gitee or GitHub and download the sample package that matches the required version. For the version mapping, see "Release Notes" in the README file. Find the "gemm" sample in the cplusplus/level1_single_api/1_acl/4_blas/gemm directory. |
Matrix-matrix multiplication |
Refer to the README file. |
vpc_resnet50_imagenet_classification |
Go to the Ascend samples repository on Gitee or GitHub and download the sample package that matches the required version. For the version mapping, see "Release Notes" in the README file. Find the "vpc_resnet50_imagenet_classification" sample in the cplusplus/level2_simple_inference/1_classification/vpc_resnet50_imagenet_classification directory. |
Image classification with Caffe ResNet-50 (image decoding+resizing+synchronous inference) |
Refer to the README file. |
vpc_jpeg_resnet50_imagenet_classification |
Go to the Ascend samples repository on Gitee or GitHub and download the sample package that matches the required version. For the version mapping, see "Release Notes" in the README file. Find the "vpc_jpeg_resnet50_imagenet_classification" sample in the cplusplus/level2_simple_inference/1_classification/vpc_jpeg_resnet50_imagenet_classification directory. |
Image classification with Caffe ResNet-50 (image decoding+cropping and resizing+image encoding+synchronous inference) |
Refer to the README file. |
vdec_resnet50_classification |
Go to the Ascend samples repository on Gitee or GitHub and download the sample package that matches the required version. For the version mapping, see "Release Notes" in the README file. Find the "vdec_resnet50_classification" sample in the cplusplus/level2_simple_inference/1_classification/vdec_resnet50_classification directory. |
Image classification with Caffe ResNet-50 (video decoding+synchronous inference) |
Refer to the README file. |
resnet50_imagenet_classification |
Go to the Ascend samples repository on Gitee or GitHub and download the sample package that matches the required version. For the version mapping, see "Release Notes" in the README file. Find the "resnet50_imagenet_classification" sample in the cplusplus/level2_simple_inference/1_classification/resnet50_imagenet_classification directory. |
Image classification with Caffe ResNet-50 (synchronous inference) |
Refer to the README file. |
resnet50_async_imagenet_classification |
Go to the Ascend samples repository on Gitee or GitHub and download the sample package that matches the required version. For the version mapping, see "Release Notes" in the README file. Find the "resnet50_async_imagenet_classification" sample in the cplusplus/level2_simple_inference/1_classification/resnet50_async_imagenet_classification directory. |
Image classification with Caffe ResNet-50 (asynchronous inference) |
Refer to the README file. |
batchcrop |
Visit the Ascend samples repository on Gitee or GitHub and download the sample package that matches your CANN version in use. For the version mapping, see "Release Notes" in the README file. Find the "batchcrop" sample in the cplusplus/level2_simple_inference/0_data_process/batchcrop directory. |
Media data processing V1 (single-image, multi-ROI cropping) |
Refer to the README file. |
venc_image |
Visit the Ascend samples repository on Gitee or GitHub and download the sample package that matches your CANN version in use. For the version mapping, see "Release Notes" in the README file. Find the "venc_image" sample in the cplusplus/level2_simple_inference/0_data_process/venc_image directory. |
Media data processing V1 (video encoding) |
Refer to the README file. |
smallResolution_cropandpaste |
Visit the Ascend samples repository on Gitee or GitHub and download the sample package that matches your CANN version in use. For the version mapping, see "Release Notes" in the README file. Find the "smallResolution_cropandpaste" sample in the cplusplus/level2_simple_inference/0_data_process/smallResolution_cropandpaste directory. |
Media data processing V1 (cropping and pasting) |
Refer to the README file. |
YOLOV3_dynamic_batch_detection_picture |
Go to the Ascend samples repository on Gitee or GitHub and download the sample package that matches the required version. For the version mapping, see "Release Notes" in the README file. Find the "YOLOV3_dynamic_batch_detection_picture" sample in the cplusplus/level2_simple_inference/2_object_detection/YOLOV3_dynamic_batch_detection_picture directory. |
Object detection with Caffe YOLOv3 (dynamic batch/image size) |
Refer to the README file. |
vpc_sample |
Go to the Ascend samples repository on Gitee or GitHub and download the sample package that matches the required version. For the version mapping, see "Release Notes" in the README file. Find the sample in the cplusplus/level1_single_api/7_dvpp/vpc_sample directory. |
Media data processing V2 (VPC cropping, pasting, and resizing) |
Refer to the README file. |
jpegd_sample |
Go to the Ascend samples repository on Gitee or GitHub and download the sample package that matches the required version. For the version mapping, see "Release Notes" in the README file. Find the sample in the cplusplus/level1_single_api/7_dvpp/jpegd_sample directory. |
Media data processing V2 (JPEG image decoding) |
Refer to the README file. |
jpege_sample |
Go to the Ascend samples repository on Gitee or GitHub and download the sample package that matches the required version. For the version mapping, see "Release Notes" in the README file. Find the sample in the cplusplus/level1_single_api/7_dvpp/jpege_sample directory. |
Media data processing V2 (JPEG image encoding) |
Refer to the README file. |
vdec_sample |
Go to the Ascend samples repository on Gitee or GitHub and download the sample package that matches the required version. For the version mapping, see "Release Notes" in the README file. Find the sample in the cplusplus/level1_single_api/7_dvpp/vdec_sample directory. |
Media data processing V2 (VDEC video decoding) |
Refer to the README file. |
venc_sample |
Go to the Ascend samples repository on Gitee or GitHub and download the sample package that matches the required version. For the version mapping, see "Release Notes" in the README file. Find the sample in the cplusplus/level1_single_api/7_dvpp/venc_sample directory. |
Media data processing V2 (VENC video encoding) |
Refer to the README file. |
pngd_sample |
Go to the Ascend samples repository on Gitee or GitHub and download the sample package that matches the required version. For the version mapping, see "Release Notes" in the README file. Find the sample in the cplusplus/level1_single_api/7_dvpp/pngd_sample directory. |
Media data processing V2 (PNGD image decoding) |
Refer to the README file. |