Skip to content
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

mlir2onnx tool optimize (for visualizing *_final.mlir files) #80

Open
charlesxzb opened this issue Feb 18, 2023 · 0 comments
Open

mlir2onnx tool optimize (for visualizing *_final.mlir files) #80

charlesxzb opened this issue Feb 18, 2023 · 0 comments
Labels
Bonus Bonus can be obtained after resolving this issue enhancement New feature or request

Comments

@charlesxzb
Copy link
Collaborator

charlesxzb commented Feb 18, 2023

Optimize mlir2onnx.py so that *_final.mlir can be converted to .pb file and visualized in Netron.

The main difference between *.mlir and *_final.mlir is the latter contains information of the subnet and layer group.

Source Code Path:
tpu-mlir/python/tools/mlir2onnx.py

To test:

$ cd tpu-mlir/regression  
$ ./run_model.sh resnet50_tf  
$ mlir2onnx.py -m regression_out/resnet50_tf_bm1684x/resnet50_tf_bm1684x_int8_asym_final.mlir -o resnet50_tf_final.pb

Bonus: 500pt

@charlesxzb charlesxzb added enhancement New feature or request Bonus Bonus can be obtained after resolving this issue labels Feb 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bonus Bonus can be obtained after resolving this issue enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant