Skip to content

Commit 7ee9cd6

Browse files
committed
Fix serialization deserialization issues in core
1 parent 61c7d1b commit 7ee9cd6

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

sagemaker-core/src/sagemaker/core/training/configs.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -257,15 +257,16 @@ class InputData(BaseConfig):
257257
Parameters:
258258
channel_name (StrPipeVar):
259259
The name of the input data source channel.
260-
data_source (Union[str, S3DataSource, FileSystemDataSource, DatasetSource]):
260+
data_source (Union[StrPipeVar, S3DataSource, FileSystemDataSource, DatasetSource]):
261261
The data source for the channel. Can be an S3 URI string, local file path string,
262-
S3DataSource object, or FileSystemDataSource object.
262+
S3DataSource object, FileSystemDataSource object, DatasetSource object, or a
263+
pipeline variable (Properties) from a previous step.
263264
content_type (StrPipeVar):
264265
The MIME type of the data.
265266
"""
266267

267268
channel_name: StrPipeVar = None
268-
data_source: Union[str, FileSystemDataSource, S3DataSource, DatasetSource] = None
269+
data_source: Union[StrPipeVar, FileSystemDataSource, S3DataSource, DatasetSource] = None
269270
content_type: StrPipeVar = None
270271

271272

sagemaker-core/src/sagemaker/core/utils/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ def pascal_to_snake(pascal_str):
273273

274274

275275
def is_not_primitive(obj):
276-
return not isinstance(obj, (int, float, str, bool, datetime.datetime))
276+
return not isinstance(obj, (int, float, str, bool, datetime.datetime, bytes))
277277

278278

279279
def is_not_str_dict(obj):

0 commit comments

Comments
 (0)