Skip to content

Conversation

@tangyanf
Copy link
Contributor

@tangyanf tangyanf commented Feb 2, 2021

I moved the previous pr to this

@tangyanf tangyanf mentioned this pull request Feb 2, 2021
Copy link
Owner

@daquexian daquexian left a comment

Choose a reason for hiding this comment

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

Thanks for your great contribution! Overall it looks good to me. Some minor comments are posted.

input_shapes[name] = shape
input_shapes.update({name: shape})

input_datas = dict()
Copy link
Owner

Choose a reason for hiding this comment

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

input_data_paths is a better name

input_shapes = {}
sess_options = rt.SessionOptions()
if custom_lib is not None:
if os.path.exists(custom_lib):
Copy link
Owner

Choose a reason for hiding this comment

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

raise an exception if file named custom_lib does not exist

Copy link
Contributor Author

Choose a reason for hiding this comment

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

that's great, i will add it

if args.input_data is not None:
for x in args.input_data:
pieces = x.split(':')
name, data = pieces[0], pieces[-1]
Copy link
Owner

@daquexian daquexian Feb 2, 2021

Choose a reason for hiding this comment

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

pieces[0] -> ':'.join(pieces[:-1])

@daquexian
Copy link
Owner

Thanks for your great contribution!

@daquexian daquexian merged commit 43f4105 into daquexian:master Feb 6, 2021
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.

2 participants