初识ONNX | 【ONNX - Python 安装】
2021/9/28 12:10:46
本文主要是介绍初识ONNX | 【ONNX - Python 安装】,对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!
文章目录
- 初识 ONNX
- ONNX 定义
- ONNX 作用
- ONNX Runtime
- ONNX Python 安装
初识 ONNX
ONNX 定义
ONNX is an open format built to represent machine learning models. ONNX defines a common set of operators - the building blocks of machine learning and deep learning models - and a common file format to enable AI developers to use models with a variety of frameworks, tools, runtimes, and compilers.
ONNX 是一种用于表征机器学习模型的开放格式构建。 ONNX 定义了一组通用算子——机器学习和深度学习模型的构建块——以及一种通用文件格式,使 AI 开发人员能够使用不同框架、工具、运行时和编译器类型下的模型。
ONNX 作用
ONNX Runtime
ONNX Runtime is a performance-focused engine for ONNX models, which inferences efficiently across multiple platforms and hardware (Windows, Linux, and Mac and on both CPUs and GPUs).
ONNX Python 安装
Linux下 pytorch 1.8的极简安装
conda create -n torch18 python= 3.7.6 conda activate torch18 pip3 install torch==1.8.1+cu111 torchvision==0.9.1+cu111 torchaudio==0.8.1 -f https://download.pytorch.org/whl/lts/1.8/torch_lts.html pip install numpy protobuf==3.16.0 pip install onnx conda install --name torch18 ipykernel -y
这条命令非必须运行【盲猜】
sudo apt install vulkan-utils
这篇关于初识ONNX | 【ONNX - Python 安装】的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!
- 2024-05-08有遇到过吗?同样的规则 Excel 中 比Python 结果大
- 2024-03-30开始python成长之路
- 2024-03-29python optparse
- 2024-03-29python map 函数
- 2024-03-20invalid format specifier python
- 2024-03-18pool.map python
- 2024-03-18threads in python
- 2024-03-14python Ai 应用开发基础训练,字符串,字典,文件
- 2024-03-13id3 algorithm python
- 2024-03-13sum array elements python