Skip to content

Commit

Permalink
[tools/model_explorer_circle] Update README for about Circle schema (S…
Browse files Browse the repository at this point in the history
…amsung#14326)

It updates the README file to let users know how to generate the Circle
schema with flatbuffer compiler.

ONE-DCO-1.0-Signed-off-by: Jonghwa Lee <[email protected]>
  • Loading branch information
batcheu authored Nov 20, 2024
1 parent 9eaa697 commit 0746897
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tools/model_explorer_circle/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,13 @@ Circle adapter is an extension adapter for displaying a Circle model in Model Ex
* [Model Explorer](https://github.com/google-ai-edge/model-explorer)
* Visulization tool for various type of model graphs such as onnx, tflite, pt2 and mlir.

### How to generate Circle schema python script

(This is not mandatory since it already included default Circle schema generated by following procedure.)

* When circle adapter loads the Circle model and displays in Model Explorer, it uses Circle schema.
* With the help of a flatbuffer compiler, we can create a Circle schema python interface for use in Circle adapter.
```
flatc -p --gen-onefile --gen-object-api circle_schema.fbs
```
* Note: For `--gen-onefile` option, you need to use the latest version of `flatc`. (tested version = v24.3.25)

0 comments on commit 0746897

Please sign in to comment.