栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 软件开发 > 后端开发 > Python

初识ONNX | 【ONNX - Python 安装】

Python 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

初识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



转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/273051.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号