AI学习资源的汇总

1 TensorRT

https://developer.nvidia.com/tensorrt

developer guide & sample code

https://docs.nvidia.com/deeplearning/sdk/tensorrt-developer-guide/index.html

2 Caffe

code:

http://caffe.berkeleyvision.org/doxygen/hierarchy.html

3 Nvidia Cuda 

http://www.nvidia.cn/object/cuda_education_cn_old.html

串行并行对比

https://www.nvidia.com/object/nvision08_gpu_v_cpu.html

4 TensorRT Introducing GPU Inference Engine

https://devblogs.nvidia.com/production-deep-learning-nvidia-gpu-inference-engine/

5 AI 课程

https://www.nvidia.com/en-us/deep-learning-ai/education/

GIE Build Phase

The GIE runtime needs three files to deploy a classification neural network:

  1. a network architecture file (deploy.prototxt),
  2. trained weights (net.caffemodel), and
  3. a label file to provide a name for each output class.

In addition, you must define the batch size and the output layer. Code Listing 1 illustrates how to convert a Caffe model to a GIE object. The builder (lines 4-7) is responsible for reading the network information. Alternatively, you can use the builder to define the network information if you don’t provide a network architecture file (deploy.prototxt).

GIE supports the following layer types.

  • Convolution: 2D
  • Activation: ReLU, tanh and sigmoid
  • Pooling: max and average
  • ElementWise: sum, product or max of two tensors
  • LRN: cross-channel only
  • Fully-connected: with or without bias
  • SoftMax: cross-channel only
  • Deconvolution
  1. IBuilder* builder = createInferBuilder(gLogger);
  2.  
  3. // parse the caffe model to populate the network, then set the outputs
  4. INetworkDefinition* network = builder->createNetwork();
  5.  
  6. CaffeParser parser;
  7. auto blob_name_to_tensor = parser.parse(“deploy.prototxt”,
  8. trained_file.c_str(),
  9. *network,
  10. DataType::kFLOAT);
  11.  
  12. // specify which tensors are outputs
  13. network->markOutput(*blob_name_to_tensor->find("prob"));
  14.  
  15. // Build the engine
  16. builder->setMaxBatchSize(1);
  17. builder->setMaxWorkspaceSize(1 << 30);
  18. ICudaEngine* engine = builder->buildCudaEngine(*network);

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
AI人工智能培训资料(培训PPT+示例代码),资料很大将近3GB,供大家下载学习参考。 1-Python基础(教程+代码) 2-Python数据分析基础(教程+代码) 3-数字图像处理 1)图像处理基础 2)边缘检测 3)形态学图像处理 4-深度学习算法与框架 代码 1)神经网络 2)卷积神经网络 3) 循环神经网络 4)深度学习框架以及应用 卷积神经网络案例 5-AI云服务的调用与搭建 1) 人工智能服务部署 2) 基于AI云服务的快速应用开发 3) 开源项目介绍与实战 6-数据挖掘与数据分析 代码 数据挖掘数据分析-5-分类2-贝叶斯算法 数据挖掘数据分析-1-导论 数据挖掘数据分析-2-机器学习 数据挖掘数据分析-3-数据预处理 数据挖掘数据分析-4-数据仓库 数据挖掘数据分析-5-分类1-kNN 数据挖掘数据分析-5-分类3-决策树ID3 数据挖掘数据分析-5-分类3-C4.5-CART(选) 数据挖掘数据分析-5-分类4-神经网络 数据挖掘数据分析-5-分类4-bp算法(选) 数据挖掘数据分析-5-分类5-支撑向量机SVM 数据挖掘数据分析-6-回归1-线性回归 数据挖掘数据分析-7-聚类 7-目标检测 代码 8-YOLOv3解析 1-VOC数据集 2-COCO数据集 3-目标检测概述 4-mAP 5-faster rcnn 6-YOLOv1解析 7-YOLOv2解析 8-人脸检测与识别 代码 face_recognition 1-adaboost 2-人脸数据集简介 3-ArcFace 9-seq2seq模型 convert seq2seq seq2seq with attention 数字图像处理串讲1 数字图像处理串讲2 10-bert模型 Attention Is All You Need BERT Pre-training of Deep Bidirectional Transformers for Language Understanding bert Transformer 11-其他 机器学习之支持向量机 人工智能技术基础及运营商应用 人工智能-真题集 人工智能-论文集
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值