Skip to content

Commit a2699a5

Browse files
authored
Merge branch 'master' into fix-localmode-subprocess-termination
2 parents d7f3ed6 + 0ce904c commit a2699a5

39 files changed

+438
-39
lines changed

CHANGELOG.md

+31-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,35 @@
11
# Changelog
22

3+
## v2.56.0 (2021-08-26)
4+
5+
### Features
6+
7+
* Add NEO KIX Configuration
8+
* Algorithms region launch on KIX
9+
10+
### Bug Fixes and Other Changes
11+
12+
* remove dots from CHANGELOG
13+
14+
## v2.55.0 (2021-08-25)
15+
16+
### Features
17+
18+
* Add information of Amazon-provided analysis image used by Model Monitor
19+
20+
### Bug Fixes and Other Changes
21+
22+
* Update Changelog to fix release
23+
* Fixing the order of populating container list
24+
* pass network isolation config to pipelineModel
25+
* Deference symbolic link when create tar file
26+
* multiprocess issue in feature_group.py
27+
* deprecate tag logic on Association
28+
29+
### Documentation Changes
30+
31+
* add dataset_definition to processing page
32+
333
## v2.54.0 (2021-08-16)
434

535
### Features
@@ -8,7 +38,7 @@
838

939
### Bug Fixes and Other Changes
1040

11-
* issue #2253 where Processing job in Local mode would call Describe
41+
* issue #2253 where Processing job in Local mode would call Describe API
1242

1343
## v2.53.0 (2021-08-12)
1444

VERSION

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.54.1.dev0
1+
2.56.1.dev0

doc/api/utility/inputs.rst

+5-1
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,8 @@ Inputs
55
:members:
66
:undoc-members:
77
:show-inheritance:
8-
:noindex:
8+
9+
.. automodule:: sagemaker.dataset_definition.inputs
10+
:members:
11+
:undoc-members:
12+
:show-inheritance:

src/sagemaker/dataset_definition/inputs.py

+6-7
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class RedshiftDatasetDefinition(ApiObject):
2727
2828
With this input, SQL queries will be executed using Redshift to generate datasets to S3.
2929
30-
Attributes:
30+
Parameters:
3131
cluster_id (str): The Redshift cluster Identifier.
3232
database (str): The name of the Redshift database used in Redshift query execution.
3333
db_user (str): The database user name used in Redshift query execution.
@@ -60,7 +60,7 @@ class AthenaDatasetDefinition(ApiObject):
6060
6161
With this input, SQL queries will be executed using Athena to generate datasets to S3.
6262
63-
Attributes:
63+
Parameters:
6464
catalog (str): The name of the data catalog used in Athena query execution.
6565
database (str): The name of the database used in the Athena query execution.
6666
query_string (str): The SQL query statements, to be executed.
@@ -87,7 +87,7 @@ class AthenaDatasetDefinition(ApiObject):
8787
class DatasetDefinition(ApiObject):
8888
"""DatasetDefinition input.
8989
90-
Attributes:
90+
Parameters:
9191
data_distribution_type (str): Whether the generated dataset is FullyReplicated or
9292
ShardedByS3Key (default).
9393
input_mode (str): Whether to use File or Pipe input mode. In File (default) mode, Amazon
@@ -98,9 +98,8 @@ class DatasetDefinition(ApiObject):
9898
local_path (str): The local path where you want Amazon SageMaker to download the Dataset
9999
Definition inputs to run a processing job. LocalPath is an absolute path to the input
100100
data. This is a required parameter when `AppManaged` is False (default).
101-
redshift_dataset_definition
102-
(:class:`~sagemaker.dataset_definition.inputs.RedshiftDatasetDefinition`): Redshift
103-
dataset definition.
101+
redshift_dataset_definition (:class:`~sagemaker.dataset_definition.inputs.RedshiftDatasetDefinition`):
102+
Configuration for Redshift Dataset Definition input.
104103
athena_dataset_definition (:class:`~sagemaker.dataset_definition.inputs.AthenaDatasetDefinition`):
105104
Configuration for Athena Dataset Definition input.
106105
"""
@@ -126,7 +125,7 @@ class S3Input(ApiObject):
126125
S3 list operations are not strongly consistent.
127126
Use ManifestFile if strong consistency is required.
128127
129-
Attributes:
128+
Parameters:
130129
s3_uri (str): the path to a specific S3 object or a S3 prefix
131130
local_path (str): the path to a local directory. If not provided, skips data download
132131
by SageMaker platform.

src/sagemaker/image_uri_config/blazingtext.json

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
"ap-east-1": "286214385809",
88
"ap-northeast-1": "501404015308",
99
"ap-northeast-2": "306986355934",
10+
"ap-northeast-3": "867004704886",
1011
"ap-south-1": "991648021394",
1112
"ap-southeast-1": "475088953585",
1213
"ap-southeast-2": "544295431143",

src/sagemaker/image_uri_config/clarify.json

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
"ap-east-1": "098760798382",
88
"ap-northeast-1": "377024640650",
99
"ap-northeast-2": "263625296855",
10+
"ap-northeast-3": "912233562940",
1011
"ap-south-1": "452307495513",
1112
"ap-southeast-1": "834264404009",
1213
"ap-southeast-2": "007051062584",

src/sagemaker/image_uri_config/factorization-machines.json

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
"ap-east-1": "286214385809",
88
"ap-northeast-1": "351501993468",
99
"ap-northeast-2": "835164637446",
10+
"ap-northeast-3": "867004704886",
1011
"ap-south-1": "991648021394",
1112
"ap-southeast-1": "475088953585",
1213
"ap-southeast-2": "712309505854",

src/sagemaker/image_uri_config/image-classification-neo.json

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
"ap-east-1": "110948597952",
88
"ap-northeast-1": "941853720454",
99
"ap-northeast-2": "151534178276",
10+
"ap-northeast-3": "925152966179",
1011
"ap-south-1": "763008648453",
1112
"ap-southeast-1": "324986816169",
1213
"ap-southeast-2": "355873309152",

src/sagemaker/image_uri_config/image-classification.json

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
"ap-south-1": "991648021394",
1111
"ap-southeast-1": "475088953585",
1212
"ap-southeast-2": "544295431143",
13+
"ap-northeast-3": "867004704886",
1314
"ca-central-1": "469771592824",
1415
"cn-north-1": "390948362332",
1516
"cn-northwest-1": "387376663083",

src/sagemaker/image_uri_config/inferentia-mxnet.json

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
"ap-east-1": "110948597952",
1010
"ap-northeast-1": "941853720454",
1111
"ap-northeast-2": "151534178276",
12+
"ap-northeast-3": "925152966179",
1213
"ap-south-1": "763008648453",
1314
"ap-southeast-1": "324986816169",
1415
"ap-southeast-2": "355873309152",

src/sagemaker/image_uri_config/inferentia-pytorch.json

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
"ap-east-1": "110948597952",
1010
"ap-northeast-1": "941853720454",
1111
"ap-northeast-2": "151534178276",
12+
"ap-northeast-3": "925152966179",
1213
"ap-south-1": "763008648453",
1314
"ap-southeast-1": "324986816169",
1415
"ap-southeast-2": "355873309152",

src/sagemaker/image_uri_config/inferentia-tensorflow.json

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
"ap-east-1": "110948597952",
1010
"ap-northeast-1": "941853720454",
1111
"ap-northeast-2": "151534178276",
12+
"ap-northeast-3": "925152966179",
1213
"ap-south-1": "763008648453",
1314
"ap-southeast-1": "324986816169",
1415
"ap-southeast-2": "355873309152",

src/sagemaker/image_uri_config/ipinsights.json

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
"ap-east-1": "286214385809",
88
"ap-northeast-1": "351501993468",
99
"ap-northeast-2": "835164637446",
10+
"ap-northeast-3": "867004704886",
1011
"ap-south-1": "991648021394",
1112
"ap-southeast-1": "475088953585",
1213
"ap-southeast-2": "712309505854",

src/sagemaker/image_uri_config/kmeans.json

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
"ap-east-1": "286214385809",
88
"ap-northeast-1": "351501993468",
99
"ap-northeast-2": "835164637446",
10+
"ap-northeast-3": "867004704886",
1011
"ap-south-1": "991648021394",
1112
"ap-southeast-1": "475088953585",
1213
"ap-southeast-2": "712309505854",

src/sagemaker/image_uri_config/knn.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,11 @@
33
"versions": {
44
"1": {
55
"registries": {
6-
"af-south-1": "455444449433",
6+
"af-south-1": "455444449433",
77
"ap-east-1": "286214385809",
88
"ap-northeast-1": "351501993468",
99
"ap-northeast-2": "835164637446",
10+
"ap-northeast-3": "867004704886",
1011
"ap-south-1": "991648021394",
1112
"ap-southeast-1": "475088953585",
1213
"ap-southeast-2": "712309505854",

src/sagemaker/image_uri_config/linear-learner.json

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
"ap-east-1": "286214385809",
88
"ap-northeast-1": "351501993468",
99
"ap-northeast-2": "835164637446",
10+
"ap-northeast-3": "867004704886",
1011
"ap-south-1": "991648021394",
1112
"ap-southeast-1": "475088953585",
1213
"ap-southeast-2": "712309505854",

src/sagemaker/image_uri_config/neo-mxnet.json

+1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
"ap-east-1": "110948597952",
2424
"ap-northeast-1": "941853720454",
2525
"ap-northeast-2": "151534178276",
26+
"ap-northeast-3": "925152966179",
2627
"ap-south-1": "763008648453",
2728
"ap-southeast-1": "324986816169",
2829
"ap-southeast-2": "355873309152",

src/sagemaker/image_uri_config/neo-pytorch.json

+3
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
"ap-east-1": "110948597952",
1818
"ap-northeast-1": "941853720454",
1919
"ap-northeast-2": "151534178276",
20+
"ap-northeast-3": "925152966179",
2021
"ap-south-1": "763008648453",
2122
"ap-southeast-1": "324986816169",
2223
"ap-southeast-2": "355873309152",
@@ -46,6 +47,7 @@
4647
"ap-east-1": "110948597952",
4748
"ap-northeast-1": "941853720454",
4849
"ap-northeast-2": "151534178276",
50+
"ap-northeast-3": "925152966179",
4951
"ap-south-1": "763008648453",
5052
"ap-southeast-1": "324986816169",
5153
"ap-southeast-2": "355873309152",
@@ -75,6 +77,7 @@
7577
"ap-east-1": "110948597952",
7678
"ap-northeast-1": "941853720454",
7779
"ap-northeast-2": "151534178276",
80+
"ap-northeast-3": "925152966179",
7881
"ap-south-1": "763008648453",
7982
"ap-southeast-1": "324986816169",
8083
"ap-southeast-2": "355873309152",

src/sagemaker/image_uri_config/neo-tensorflow.json

+1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
"ap-east-1": "110948597952",
2323
"ap-northeast-1": "941853720454",
2424
"ap-northeast-2": "151534178276",
25+
"ap-northeast-3": "925152966179",
2526
"ap-south-1": "763008648453",
2627
"ap-southeast-1": "324986816169",
2728
"ap-southeast-2": "355873309152",

src/sagemaker/image_uri_config/ntm.json

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
"ap-east-1": "286214385809",
88
"ap-northeast-1": "351501993468",
99
"ap-northeast-2": "835164637446",
10+
"ap-northeast-3": "867004704886",
1011
"ap-south-1": "991648021394",
1112
"ap-southeast-1": "475088953585",
1213
"ap-southeast-2": "712309505854",

src/sagemaker/image_uri_config/object-detection.json

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
"ap-east-1": "286214385809",
88
"ap-northeast-1": "501404015308",
99
"ap-northeast-2": "306986355934",
10+
"ap-northeast-3": "867004704886",
1011
"ap-south-1": "991648021394",
1112
"ap-southeast-1": "475088953585",
1213
"ap-southeast-2": "544295431143",

src/sagemaker/image_uri_config/object2vec.json

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
"ap-east-1": "286214385809",
88
"ap-northeast-1": "351501993468",
99
"ap-northeast-2": "835164637446",
10+
"ap-northeast-3": "867004704886",
1011
"ap-south-1": "991648021394",
1112
"ap-southeast-1": "475088953585",
1213
"ap-southeast-2": "712309505854",

src/sagemaker/image_uri_config/pca.json

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
"ap-east-1": "286214385809",
88
"ap-northeast-1": "351501993468",
99
"ap-northeast-2": "835164637446",
10+
"ap-northeast-3": "867004704886",
1011
"ap-south-1": "991648021394",
1112
"ap-southeast-1": "475088953585",
1213
"ap-southeast-2": "712309505854",

src/sagemaker/image_uri_config/randomcutforest.json

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
"ap-east-1": "286214385809",
88
"ap-northeast-1": "351501993468",
99
"ap-northeast-2": "835164637446",
10+
"ap-northeast-3": "867004704886",
1011
"ap-south-1": "991648021394",
1112
"ap-southeast-1": "475088953585",
1213
"ap-southeast-2": "712309505854",

src/sagemaker/image_uri_config/semantic-segmentation.json

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
"ap-east-1": "286214385809",
88
"ap-northeast-1": "501404015308",
99
"ap-northeast-2": "306986355934",
10+
"ap-northeast-3": "867004704886",
1011
"ap-south-1": "991648021394",
1112
"ap-southeast-1": "475088953585",
1213
"ap-southeast-2": "544295431143",

src/sagemaker/image_uri_config/seq2seq.json

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
"ap-east-1": "286214385809",
88
"ap-northeast-1": "501404015308",
99
"ap-northeast-2": "306986355934",
10+
"ap-northeast-3": "867004704886",
1011
"ap-south-1": "991648021394",
1112
"ap-southeast-1": "475088953585",
1213
"ap-southeast-2": "544295431143",

src/sagemaker/image_uri_config/sklearn.json

+2
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
"ap-east-1": "651117190479",
1010
"ap-northeast-1": "354813040037",
1111
"ap-northeast-2": "366743142698",
12+
"ap-northeast-3": "867004704886",
1213
"ap-south-1": "720646828776",
1314
"ap-southeast-1": "121021644041",
1415
"ap-southeast-2": "783357654285",
@@ -39,6 +40,7 @@
3940
"ap-east-1": "651117190479",
4041
"ap-northeast-1": "354813040037",
4142
"ap-northeast-2": "366743142698",
43+
"ap-northeast-3": "867004704886",
4244
"ap-south-1": "720646828776",
4345
"ap-southeast-1": "121021644041",
4446
"ap-southeast-2": "783357654285",

src/sagemaker/image_uri_config/xgboost-neo.json

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
"ap-east-1": "110948597952",
88
"ap-northeast-1": "941853720454",
99
"ap-northeast-2": "151534178276",
10+
"ap-northeast-3": "925152966179",
1011
"ap-south-1": "763008648453",
1112
"ap-southeast-1": "324986816169",
1213
"ap-southeast-2": "355873309152",

src/sagemaker/image_uri_config/xgboost.json

+5
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
"ap-east-1": "286214385809",
1111
"ap-northeast-1": "501404015308",
1212
"ap-northeast-2": "306986355934",
13+
"ap-northeast-3": "867004704886",
1314
"ap-south-1": "991648021394",
1415
"ap-southeast-1": "475088953585",
1516
"ap-southeast-2": "544295431143",
@@ -41,6 +42,7 @@
4142
"ap-east-1": "651117190479",
4243
"ap-northeast-1": "354813040037",
4344
"ap-northeast-2": "366743142698",
45+
"ap-northeast-3": "867004704886",
4446
"ap-south-1": "720646828776",
4547
"ap-southeast-1": "121021644041",
4648
"ap-southeast-2": "783357654285",
@@ -72,6 +74,7 @@
7274
"ap-east-1": "651117190479",
7375
"ap-northeast-1": "354813040037",
7476
"ap-northeast-2": "366743142698",
77+
"ap-northeast-3": "867004704886",
7578
"ap-south-1": "720646828776",
7679
"ap-southeast-1": "121021644041",
7780
"ap-southeast-2": "783357654285",
@@ -103,6 +106,7 @@
103106
"ap-east-1": "651117190479",
104107
"ap-northeast-1": "354813040037",
105108
"ap-northeast-2": "366743142698",
109+
"ap-northeast-3": "867004704886",
106110
"ap-south-1": "720646828776",
107111
"ap-southeast-1": "121021644041",
108112
"ap-southeast-2": "783357654285",
@@ -132,6 +136,7 @@
132136
"ap-east-1": "651117190479",
133137
"ap-northeast-1": "354813040037",
134138
"ap-northeast-2": "366743142698",
139+
"ap-northeast-3": "867004704886",
135140
"ap-south-1": "720646828776",
136141
"ap-southeast-1": "121021644041",
137142
"ap-southeast-2": "783357654285",

src/sagemaker/inputs.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ def __init__(self, seed):
127127
class CreateModelInput(object):
128128
"""A class containing parameters which can be used to create a SageMaker Model
129129
130-
Attributes:
130+
Parameters:
131131
instance_type (str): type or EC2 instance will be used for model deployment.
132132
accelerator_type (str): elastic inference accelerator type.
133133
"""

src/sagemaker/model.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -1097,6 +1097,8 @@ def _upload_code(self, key_prefix, repack=False):
10971097

10981098
def _framework_env_vars(self):
10991099
"""Placeholder docstring"""
1100+
script_name = None
1101+
dir_name = None
11001102
if self.uploaded_code:
11011103
script_name = self.uploaded_code.script_name
11021104
if self.enable_network_isolation():
@@ -1105,10 +1107,8 @@ def _framework_env_vars(self):
11051107
dir_name = self.uploaded_code.s3_prefix
11061108
elif self.entry_point is not None:
11071109
script_name = self.entry_point
1108-
dir_name = "file://" + self.source_dir
1109-
else:
1110-
script_name = None
1111-
dir_name = None
1110+
if self.source_dir is not None:
1111+
dir_name = "file://" + self.source_dir
11121112

11131113
return {
11141114
SCRIPT_PARAM_NAME.upper(): script_name or str(),

0 commit comments

Comments
 (0)