Skip to content

[NFC] Make flags more descriptive#3330

Merged
hanhanW merged 5 commits intoiree-org:mainfrom
hanhanW:flags
Oct 5, 2020
Merged

[NFC] Make flags more descriptive#3330
hanhanW merged 5 commits intoiree-org:mainfrom
hanhanW:flags

Conversation

@hanhanW
Copy link
Copy Markdown
Contributor

@hanhanW hanhanW commented Oct 2, 2020

Fixes #3248

@hanhanW
Copy link
Copy Markdown
Contributor Author

hanhanW commented Oct 2, 2020

We can consider to update flag names in iree-run-mlir. I didn't do it because the style there looks different. Do we want to replace --input-values with --function-inputs for it?

@antiagainst
Copy link
Copy Markdown
Member

Could you also update the flags in iree-run-module-vulkan-gui-main.cc and build_apk.sh? They are newly added files. :) It would be nice to perform a grep to make sure there are no others left.

iree-run-mlir uses cli parsing from LLVM and it's following LLVM style (using - instead of _). It would also be nice to unify the words used in options there though. But it can happen as another pull request.

Copy link
Copy Markdown
Member

@antiagainst antiagainst left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We also need to update flags in iree-run-module-vulkan-gui-main.cc and build_apk.sh.

@hanhanW
Copy link
Copy Markdown
Contributor Author

hanhanW commented Oct 2, 2020

I updated iree-run-module-vulkan-gui-main.cc and build_apk.sh, thanks for pointing them out!

New finding:

  1. Serialization in tf_test_utils.py, ie, creating flagfile
  2. I think iree-check-module-main.cc has the same context, so also change the variable naming there, although it doesn't have flags.

Copy link
Copy Markdown
Contributor

@phoenix-meadowlark phoenix-meadowlark left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The modifications to the benchmarking readme and tensorflow integrations LTGM!

@hanhanW hanhanW merged commit 8255d34 into iree-org:main Oct 5, 2020
@hanhanW hanhanW deleted the flags branch October 5, 2020 14:32
hanhanW added a commit to hanhanW/iree that referenced this pull request Oct 5, 2020
hanhanW added a commit that referenced this pull request Oct 5, 2020
Follow up on #3330 to unify words in
options.

Part of #3248
@GMNGeoffrey GMNGeoffrey mentioned this pull request Oct 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Confusing -input_file, -inputs, and -inputs_file flags in tools

4 participants