You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 30, 2018. It is now read-only.
You can translate a caffe2 model to onnx with just couple lines of code (these are extracted from the caffe2_ref_test.py@jerryzh168 mentioned above):
import onnx_caffe2.frontend as c2_onnx
from caffe2.proto import caffe2_pb2
c2_net = caffe2_pb2.NetDef()
with open(c2_model_file, 'rb') as f:
c2_net.ParseFromString(f.read())
onnx_graph = c2_onnx.caffe2_net_to_onnx_graph(c2_net)
Hi,
would it be possible to get an example how to translate a valid caffe2 model into onnx?
Maybe this should go in the documentation README.md?!
Thanks
The text was updated successfully, but these errors were encountered: