跳到主要内容Skip to main content

ONNX(开放神经网络交换格式)ONNX (Open Neural Network Exchange)

ONNX (Open Neural Network Exchange)

  • 硬件与部署Hardware & deployment
  • 第五站 · 跑起来Station 5 · Running It
  • 引用核验 2026-11-17refs checked 2026-11-17
解决什么问题What problem it solves

让不同框架训练出的模型用同一种文件格式交换和部署。Let models trained in different frameworks be exchanged and deployed in one file format.

这是什么What it is

ONNX 定义计算图、算子与数据类型的开放标准,推理引擎可以直接加载。

它不负责训练,解决的是「一个框架训练、另一个环境推理」的格式壁垒。

ONNX is an open standard for computation graphs, operators and data types; inference engines can load it directly.

It does not handle training. It solves the format barrier between one framework’s training and another environment’s inference.

ONNX sits between training and deployment: frameworks export one graph format, and different inference engines load it.
ONNX 位于训练与部署之间:不同框架导出同一个计算图格式,不同推理引擎再各自加载。ONNX sits between training and deployment: frameworks export one graph format, and different inference engines load it.
为什么需要知道Why it matters

跨平台部署、边缘设备、供应商替换都会碰到它;算子覆盖不全时仍需回退或自定义。Cross-platform deployment, edge devices and vendor swaps all meet it. Incomplete operator coverage still forces fallbacks or custom ops.

别名Chinese aliases

开放神经网络交换格式 · ONNX 格式 · onnx

出处Sources
  • ONNX · 官方网站ONNX official site ↗
  • ONNX · 官方仓库ONNX repository ↗