sergey-grovety opened a new pull request, #13212:
URL: https://github.com/apache/tvm/pull/13212
Added an option to tvmc and Ethos-U for printing to console or to the file
which operators from the initial graph are offloaded to Ethos-U and which
aren't. It forms line-by-line output of initial model IR, indicating which
operations ported to Ethos-U.
### Usage
```
# output to console:
tvmc compile --target=ethos-u,cmsis-nn,c \
--target-ethos-u-dump_npu_functions_coverage=- \
........
# output to file:
tvmc compile --target=ethos-u,cmsis-nn,c \
--target-ethos-u-dump_npu_functions_coverage=<file path> \
........
```
### Example output:
```
...
ethos-u <- %1 = nn.bias_add(%0, %v_param_2, axis=3);
ethos-u <- %2 = qnn.requantize(%1, meta[relay.Constant][1], 0,
0.0235294f, -128, axis=3, out_dtype="int8");
ethos-u <- %3 = clip(%2, a_min=-128f, a_max=127f);
....
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]