Skip to content

Commit 7d818c6

Browse files
authored
Merge branch 'master' into tgi133
2 parents 3f3f947 + ef7c5a0 commit 7d818c6

32 files changed

+249
-179
lines changed

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ A clear and concise description of what the bug is.
1212

1313
**To reproduce**
1414
A clear, step-by-step set of instructions to reproduce the bug.
15+
The provided code need to be **complete** and **runnable**, if additional data is needed, please include them in the issue.
1516

1617
**Expected behavior**
1718
A clear and concise description of what you expected to happen.

src/sagemaker/base_predictor.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,9 @@
6363
LOGGER = logging.getLogger("sagemaker")
6464

6565

66+
logger = logging.getLogger(__name__)
67+
68+
6669
class PredictorBase(abc.ABC):
6770
"""An object that encapsulates a deployed model."""
6871

@@ -714,7 +717,7 @@ def list_monitors(self):
714717
endpoint_name=self.endpoint_name
715718
)
716719
if len(monitoring_schedules_dict["MonitoringScheduleSummaries"]) == 0:
717-
print("No monitors found for endpoint. endpoint: {}".format(self.endpoint_name))
720+
logger.debug("No monitors found for endpoint. endpoint: %s", self.endpoint_name)
718721
return []
719722

720723
monitors = []

src/sagemaker/cli/compatibility/v2/files.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@
2222

2323
from sagemaker.cli.compatibility.v2.ast_transformer import ASTTransformer
2424

25-
LOGGER = logging.getLogger(__name__)
25+
# Setting LOGGER for backward compatibility, in case users import this...
26+
logger = LOGGER = logging.getLogger(__name__)
2627

2728

2829
class FileUpdater(object):
@@ -59,7 +60,7 @@ def _make_output_dirs_if_needed(self):
5960
os.makedirs(output_dir)
6061

6162
if os.path.exists(self.output_path):
62-
LOGGER.warning("Overwriting file %s", self.output_path)
63+
logger.warning("Overwriting file %s", self.output_path)
6364

6465

6566
class PyFileUpdater(FileUpdater):

src/sagemaker/fw_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -474,7 +474,7 @@ def tar_and_upload_dir(
474474
if s3_resource is None:
475475
s3_resource = session.resource("s3", region_name=session.region_name)
476476
else:
477-
print("Using provided s3_resource")
477+
logger.debug("Using provided s3_resource")
478478

479479
s3_resource.Object(bucket, key).upload_file(tar_file, ExtraArgs=extra_args)
480480
finally:

src/sagemaker/image_uri_config/blazingtext.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
"ap-southeast-3": "951798379941",
1919
"ap-southeast-4": "106583098589",
2020
"ca-central-1": "469771592824",
21+
"ca-west-1": "190319476487",
2122
"cn-north-1": "390948362332",
2223
"cn-northwest-1": "387376663083",
2324
"eu-central-1": "813361260812",

src/sagemaker/image_uri_config/factorization-machines.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
"ap-southeast-3": "951798379941",
1919
"ap-southeast-4": "106583098589",
2020
"ca-central-1": "469771592824",
21+
"ca-west-1": "190319476487",
2122
"cn-north-1": "390948362332",
2223
"cn-northwest-1": "387376663083",
2324
"eu-central-1": "664544806723",

src/sagemaker/image_uri_config/forecasting-deepar.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
"ap-southeast-3": "951798379941",
1919
"ap-southeast-4": "106583098589",
2020
"ca-central-1": "469771592824",
21+
"ca-west-1": "190319476487",
2122
"cn-north-1": "390948362332",
2223
"cn-northwest-1": "387376663083",
2324
"eu-central-1": "495149712605",

src/sagemaker/image_uri_config/image-classification.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
"ap-southeast-3": "951798379941",
1919
"ap-southeast-4": "106583098589",
2020
"ca-central-1": "469771592824",
21+
"ca-west-1": "190319476487",
2122
"cn-north-1": "390948362332",
2223
"cn-northwest-1": "387376663083",
2324
"eu-central-1": "813361260812",

src/sagemaker/image_uri_config/ipinsights.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
"ap-southeast-3": "951798379941",
1919
"ap-southeast-4": "106583098589",
2020
"ca-central-1": "469771592824",
21+
"ca-west-1": "190319476487",
2122
"cn-north-1": "390948362332",
2223
"cn-northwest-1": "387376663083",
2324
"eu-central-1": "664544806723",

src/sagemaker/image_uri_config/kmeans.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
"ap-southeast-3": "951798379941",
1919
"ap-southeast-4": "106583098589",
2020
"ca-central-1": "469771592824",
21+
"ca-west-1": "190319476487",
2122
"cn-north-1": "390948362332",
2223
"cn-northwest-1": "387376663083",
2324
"eu-central-1": "664544806723",

0 commit comments

Comments
 (0)