界面已本地化;技能介绍与说明文档按所选语言由 AI 自动翻译,代码、命令、路径和专业术语保留原文,以原作者文档为准。
探索技能
效率与协作 · SKILL.md

export

export

【效率与协作】Routes Chainer model export workflows for ONNX-Chainer and Caffe.

独立 GitHub 快照 · 自动分类 · 以原作者文档为准

技能说明

GitHub

name: export description: "Routes Chainer model export workflows for ONNX-Chainer and Caffe." metadata: disco-role: operating disable-model-invocation: true license: MIT

Export

Use this sub-skill when the user wants to export a Chainer model to ONNX or Caffe, generate export testcases, or debug conversion failures.

Typical requests

  • "Export this model to ONNX."
  • "How do I generate ONNX testcases?"
  • "Why does onnx_chainer.export fail on my model?"
  • "How do I export a Chainer model to Caffe?"
  • "Why is chainer_model.prototxt or chainer_model.caffemodel missing?"

Read these first

  • references/workflows.md for the export flow.
  • references/api-reference.md for the exact export signatures and limits.
  • references/troubleshooting.md for exporter-specific failure modes.

Use this script

  • ../../scripts/export_smoke.py for a tiny ONNX and Caffe export check.

Include here

  • onnx_chainer.export(...) and onnx_chainer.export_testcase(...)
  • ONNX opset version limits and named inputs / outputs
  • Caffe export via chainer.exporters.caffe.export(...)
  • Export validation, file layout, and unsupported-layer debugging

Route elsewhere

  • Ordinary model training or serialization -> ../training/
  • MPI / distributed / multi-node export scenarios -> ../distributed/
  • ChainerX-specific model behavior -> ../chainerx/

Quick mental model

A normal export workflow is:

  1. Build a tiny model or load a trained model.
  2. Feed a representative input.
  3. Export the model to ONNX or Caffe.
  4. Validate that the target files exist and the exported graph is structurally valid.

When you only need a fast check, use the bundled smoke script.

我的收藏