Skip to content

simplify create_image_uri function #462

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
Nov 7, 2018
Merged

Conversation

jesterhazy
Copy link
Contributor

Description of changes:

simplify create_image_uri function
add failure test case for tensorflow serving predictor

Merge Checklist

Put an x in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your pull request.

  • I have read the CONTRIBUTING doc
  • I have added tests that prove my fix is effective or that my feature works (if appropriate)
  • I have updated the changelog with a description of my changes (if appropriate)
  • I have updated any necessary documentation (if appropriate)

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

@jesterhazy jesterhazy requested a review from mvsusp November 7, 2018 15:34
@codecov-io
Copy link

codecov-io commented Nov 7, 2018

Codecov Report

Merging #462 into master will increase coverage by 0.14%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #462      +/-   ##
==========================================
+ Coverage   93.73%   93.87%   +0.14%     
==========================================
  Files          56       56              
  Lines        4196     4199       +3     
==========================================
+ Hits         3933     3942       +9     
+ Misses        263      257       -6
Impacted Files Coverage Δ
src/sagemaker/tensorflow/serving.py 98.33% <100%> (-0.06%) ⬇️
src/sagemaker/fw_utils.py 100% <100%> (ø) ⬆️
src/sagemaker/local/image.py 90% <0%> (+1.87%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b6c9b0c...78e9458. Read the comment docs.

mvsusp
mvsusp previously approved these changes Nov 7, 2018

def create_image_uri(region, framework, instance_type, framework_version, py_version, account='520713654638',

def create_image_uri(region, framework, instance_type, framework_version, py_version=None, account='520713654638',
Copy link
Contributor

Choose a reason for hiding this comment

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

Thanks for doing this.

for k in ckwargs:
assert kwargs[k] == ckwargs[k]

# sagemaker_session.sagemaker_runtime_client.invoke_endpoint.assert_called_once_with(**kwargs)
Copy link
Contributor

Choose a reason for hiding this comment

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

Remove the comment. Is it possible to add a docstring just to clarify a little bit of the function does?

It took me a while to understand.

@jesterhazy jesterhazy merged commit c1ab360 into aws:master Nov 7, 2018
@jesterhazy jesterhazy deleted the je-tfs2 branch November 7, 2018 20:08
apacker pushed a commit to apacker/sagemaker-python-sdk that referenced this pull request Nov 15, 2018
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.

3 participants