Skip to content

Commit 1592dc7

Browse files
author
Balaji Veeramani
committed
Address review comments
1 parent 5968df3 commit 1592dc7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/sagemaker/amazon/common.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -27,18 +27,18 @@
2727

2828

2929
class RecordSerializer(BaseSerializer):
30-
"""Serialize array-like data for an inference request."""
30+
"""Serialize a NumPy array for an inference request."""
3131

3232
CONTENT_TYPE = "application/x-recordio-protobuf"
3333

3434
def serialize(self, data):
35-
"""Serialize array-like data into a buffer containing RecordIO records.
35+
"""Serialize a NumPy array into a buffer containing RecordIO records.
3636
3737
Args:
3838
data (numpy.ndarray): The data to serialize.
3939
4040
Returns:
41-
_io.BytesIO: A buffer containing the data serialized as records.
41+
io.BytesIO: A buffer containing the data serialized as records.
4242
"""
4343
if len(data.shape) == 1:
4444
data = data.reshape(1, data.shape[0])

0 commit comments

Comments
 (0)