Skip to content
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

Open
wants to merge 11 commits into
base: master
Choose a base branch
from
Open

Conversation

meixinzhang
Copy link

No description provided.


"""Script to use run_inference from command line
Below is a complete command line for running this script
for benchmarks

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',

Choose a reason for hiding this comment

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

Should it be 'output'?

Copy link
Author

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

Comment on lines +47 to +54
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.')

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?

Copy link
Author

@meixinzhang meixinzhang Jul 30, 2020

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']

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'''

Choose a reason for hiding this comment

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

s/returns/Returns

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants