aws / sagemaker-inference-toolkit

Serve machine learning models within a 🐳 Docker container using 🧠 Amazon SageMaker.
Apache License 2.0
372 stars 82 forks source link

fix: add model_dir to python path at service initialization #44

Closed chuyang-deng closed 4 years ago

chuyang-deng commented 4 years ago

Issue #, if available:

Description of changes: Add model_dir/code to python path when handler service is initialized.

Testing done: unit test local integration test

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.

General

Tests

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