Skip to content

Unify generation of model uploaded code location #228

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 2 commits into from
Jun 21, 2018
Merged

Unify generation of model uploaded code location #228

merged 2 commits into from
Jun 21, 2018

Conversation

humanzz
Copy link
Contributor

@humanzz humanzz commented Jun 13, 2018

  • Extract repeated key_prefix calculation in different models (base, mxnet, tensorflow, chainer) into a common utility method in fw_utils.py
  • The generated location now always respects the code_location prefix if present but it also concatenates either the model name or image-derived name to it
  • This is related to 2.b in Unexpected and dangerous behaviours with MXNet estimator's code uploading #226

Issue #, if available: 226 point 2.b

Description of changes:

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.

@codecov-io
Copy link

codecov-io commented Jun 14, 2018

Codecov Report

Merging #228 into master will decrease coverage by 1.02%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #228      +/-   ##
==========================================
- Coverage   92.53%   91.51%   -1.03%     
==========================================
  Files          49       45       -4     
  Lines        3257     3195      -62     
==========================================
- Hits         3014     2924      -90     
- Misses        243      271      +28
Impacted Files Coverage Δ
src/sagemaker/fw_utils.py 98.59% <100%> (+0.06%) ⬆️
src/sagemaker/tensorflow/model.py 100% <100%> (ø) ⬆️
src/sagemaker/model.py 95.52% <100%> (+0.06%) ⬆️
src/sagemaker/mxnet/model.py 96.42% <100%> (-0.13%) ⬇️
src/sagemaker/chainer/model.py 96.42% <100%> (-0.13%) ⬇️
src/sagemaker/tensorflow/estimator.py 80% <0%> (-16.25%) ⬇️
src/sagemaker/local/image.py 86.43% <0%> (-2.36%) ⬇️
src/sagemaker/pytorch/model.py
src/sagemaker/pytorch/defaults.py
src/sagemaker/pytorch/estimator.py
... and 1 more

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 92eb47d...85a70f1. Read the comment docs.

@humanzz
Copy link
Contributor Author

humanzz commented Jun 21, 2018

Rebased on the recently released 1.5.0 to update CHANGELOG and accommodate introduction of PyTorch

- Extract repeated key_prefix calculation in different models (base, mxnet, tensorflow, chainer, pytorch) into a common utility method in fw_utils.py
- The generated location now always respects the code_location prefix if present but it also concatenates either the model name or image-derived name to it
- This is related to 2.b in #226
laurenyu
laurenyu previously approved these changes Jun 21, 2018
Copy link
Contributor

@laurenyu laurenyu left a comment

Choose a reason for hiding this comment

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

I'm going to wait until #230 is merged before kicking off the TC tests on this one

@laurenyu laurenyu merged commit 8812053 into aws:master Jun 21, 2018
@humanzz humanzz deleted the model-code-location branch June 21, 2018 22:46
apacker pushed a commit to apacker/sagemaker-python-sdk that referenced this pull request Nov 15, 2018
Update eval frequency param for TensorBoard notebook for TensorFlow 1.6
nadiaya pushed a commit to nadiaya/sagemaker-python-sdk that referenced this pull request Nov 25, 2019
Since Spark Processing jobs will not be available by GA, the relevant Spark Processor code has been removed for now.
knakad pushed a commit to knakad/sagemaker-python-sdk that referenced this pull request Dec 4, 2019
Since Spark Processing jobs will not be available by GA, the relevant Spark Processor code has been removed for now.
knakad pushed a commit that referenced this pull request Dec 4, 2019
Since Spark Processing jobs will not be available by GA, the relevant Spark Processor code has been removed for now.
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