Closed CloudaYolla closed 4 years ago
New SageMaker SDK creates an error.
from sagemaker.predictor import json_deserializer, json_serializer predictor.serializer = sagemaker.serializers.JSONSerializer() predictor.deserializer = sagemaker.deserializers.JSONDeserializer()
Resolution:
import sagemaker.serializers predictor.serializer = sagemaker.serializers.JSONSerializer() predictor.deserializer = sagemaker.deserializers.JSONDeserializer()
import sagemaker.serializers is line can be removed, right? since we use sagemaker.serializers.JSONSerializer()
import sagemaker.serializers
sagemaker.serializers.JSONSerializer
updated code to reflect v2 change
New SageMaker SDK creates an error.
Resolution: