Repository navigation
[doc] Add tips of reading input from a file - #21143
Conversation
| Reading from a numpy file: | ||
| ``` text | ||
| [email protected] | ||
| ``` | ||
|
|
||
| Reading from a binary file with passing the shape and dtype because raw binary | ||
| files have no metadata: | ||
| ``` text | ||
| --input=[shape][email protected] | ||
| ``` |
There was a problem hiding this comment.
This has some overlap with an earlier section:
iree/docs/website/docs/developers/general/developer-overview.md
Lines 144 to 152 in a85b8ea
Some repetition is fine, but maybe link to that part of the document for a concrete example? Or merge this and that section somehow. Could also mention that iree-benchmark-module and iree-run-module share many flags.
| --8<-- "tools/test/iree-run-module-expected.mlir" | ||
| ``` | ||
|
|
||
| * Note that `iree-benchmark-module` and `iree-run-module` share many flags. |
There was a problem hiding this comment.
This is okay (especially in docs/developers), but here are some doc writing tips:
-
A single item isn't a good fit for using unordered list styling: https://developers.google.com/style/lists
Note: Don't use a list to show only one item; a single item isn't really a list. If you want to set a single item off from surrounding text, then use some other formatting.
This could use a "tip" admonition instead: https://squidfunk.github.io/mkdocs-material/reference/admonitions/ (use that with this file, github flavored markdown also has similar 'alerts': https://docs.github.com/en/get-started/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax#alerts)
-
I would put this closer to the top of the
iree-run-modulesection, rather than at the bottom
There was a problem hiding this comment.
Thanks for guidance on writing docs.
There was a problem hiding this comment.
Oops, you followed the github style:
> [!TIP]
> `iree-benchmark-module` and `iree-run-module` share many flags.As I pointed out, the docs/website/ folder uses mkdocs style:
!!! tip
`iree-benchmark-module` and `iree-run-module` share many flags.There was a problem hiding this comment.
For future changes, here is how to preview the website locally: https://github.com/iree-org/iree/tree/main/docs/website#how-to-edit-this-documentation
There was a problem hiding this comment.
Ah sorry, I will create another PR.
There was a problem hiding this comment.
Here's how the github style renders on the website: https://iree.dev/developers/general/developer-overview/#iree-run-module. Compare that to the mkdocs style admonitions: https://iree.dev/reference/tuning/#overview
Signed-off-by: jinchen62 <[email protected]>
Follow-up of #21143 Signed-off-by: jinchen62 <[email protected]>
Signed-off-by: jinchen62 <[email protected]>
Follow-up of #21143 Signed-off-by: jinchen62 <[email protected]>
No description provided.