-
Notifications
You must be signed in to change notification settings - Fork 59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add benchmarks #9
base: master
Are you sure you want to change the base?
Conversation
|
||
"""Script to use run_inference from command line | ||
Below is a complete command line for running this script | ||
for benchmarks |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also mention on dataflow?
type=str, | ||
help='Path to the data file(s) containing data.') | ||
parser.add_argument( | ||
'--output', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should it be 'output'?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The script will still run without output, which is why I don't think it should be a positional argument. But I made it required as it might be nice to know where the output is
parser.add_argument( | ||
'model_path', | ||
type=str, | ||
help='The path to input model') | ||
parser.add_argument( | ||
'input', | ||
type=str, | ||
help='Path to the data file(s) containing data.') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These 2 are also required, right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yea and without -- in front, these two won't be interpreted as optional
|
||
setup_options = options.view_as(SetupOptions) | ||
# Path of the wheel file tfx-bsl | ||
setup_options.extra_packages = ['./tfx-bsl/dist/tfx_bsl-0.23.0.dev0-cp37-cp37m-linux_x86_64.whl'] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can this be another argument to pass in?
setup_options.save_main_session = save_main_session | ||
|
||
def get_saved_model_spec(model_path): | ||
'''returns an InferenceSpecType object for a saved model path''' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
s/returns/Returns
No description provided.