Improve the spec visualizing tool.
Refactory the spec visualizing tool for better debuggability.
* Dump more operand information including buffer values.
* Support for dumping per channel quant data type.
* Add inpage links and tooltips for operands.
* Better visual graph with sidebar presentation.
* Add script visualize_spec.sh
Usage:
visualize_spec.sh spec
E.g.
cd $ANDROID_BUILD_TOP/frameworks/ml/nn/runtime/test/specs
./visualize_spec.sh V1_2/add.mod.py
Bug: 137870709
Test: running visualize_spec.sh with multiple specs
Change-Id: I8a56650a97bc9987d4ebabc77c8e10ed73b48aeb
4 files changed