-
Notifications
You must be signed in to change notification settings - Fork 2.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ONNX: textual syntax support #883
Comments
The import onnx
model = onnx.load('example.onnx')
file = open('example.pbtxt', 'w')
text = str(model);
file.write(text)
file.close() |
onnx has a new feature |
@lutzroeder so i think it is possible to describe the onnx network in a textual way,and visualize it |
@AlexHJH : please note that the syntax you describe is an experimental feature of ONNX (as mentioned in the documentation). You can use the parser documented there (in C++ or python) to create a standard .onnx protobuf file which can be consumed by Netron or any other tool. It is not meant to be an interchange standard at this point, just a tool to help users easily create onnx protobuf files. |
i think it a very good idea to describe the model in a textual syntax, but few people know it now. in the past, i wanted to modify onnx model but hvae to go back to the code and reorganize them, maybe just a little change. but now i can modify it on the text directly after i convert it to text representation, i tried and it really work @gramalingam |
Duplicate of #884 |
noticed that
.onnxtxt
suffix has bin registered in the recent commit, will it be completely supported in the future?network file like this
The text was updated successfully, but these errors were encountered: