Skip to content

Fix deserialization of dicts for json predict requests #76

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

Merged
merged 4 commits into from
Sep 18, 2018

Conversation

winstonaws
Copy link
Contributor

Issue #, if available:
#71

Description of changes:

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Copy link
Contributor

@mvsusp mvsusp 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 doing this. Besides docstrings, it seems that everything if fine.

@@ -202,25 +202,25 @@ def _create_input_map(self, data):

Copy link
Contributor

Choose a reason for hiding this comment

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

Can we change the docstrings to reflect the behaviour change?


if isinstance(data, tensor_pb2.TensorProto):
return {self.input_tensor_name: data}
def _value_to_tensor(self, value):
Copy link
Contributor

Choose a reason for hiding this comment

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

Please add some docstring here too.

@winstonaws winstonaws merged commit b16ff74 into aws:master Sep 18, 2018
@winstonaws winstonaws deleted the dict_predict_fix branch September 18, 2018 21:32
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