onnx 文件可視化工具 here,
在 mac 下安裝 onnx,
由於no checker if use conda install way #306, 需要使用從源碼安裝,
git clone https://github.com/onnx/onnx
cd onnx
python setup.py install
會提示clang
錯誤,至少需要 OS X 10.7+
MACOSX_DEPLOYMENT_TARGET=10.9 CC=clang CXX=clang++ python setup.py install
然後又報錯,
/Users/deepmind/github/onnx/onnx/cpp2py_export.cc:1:10: fatal error: 'pybind11/pybind11.h' file not found
#include <pybind11/pybind11.h>
^~~~~~~~~~~~~~~~~~~~~
1 error generated.
error: command 'clang' failed with exit status 1
參考no checker if use conda install way #306,
git clone --recursive https://github.com/onnx/onnx
cd onnx
MACOSX_DEPLOYMENT_TARGET=10.9 CC=clang CXX=clang++ python setup.py install
就安裝好了。