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.exportfail on my model?" - "How do I export a Chainer model to Caffe?"
- "Why is
chainer_model.prototxtorchainer_model.caffemodelmissing?"
Read these first
references/workflows.mdfor the export flow.references/api-reference.mdfor the exact export signatures and limits.references/troubleshooting.mdfor exporter-specific failure modes.
Use this script
../../scripts/export_smoke.pyfor a tiny ONNX and Caffe export check.
Include here
onnx_chainer.export(...)andonnx_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:
- Build a tiny model or load a trained model.
- Feed a representative input.
- Export the model to ONNX or Caffe.
- 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.
