T81-558: Keras - Applications of Deep Neural Networks @Washington University in St. Louis
5.72k
stars
3.03k
forks
source link
Error: update_endpoint is a no-op in sagemaker>=2. See: https://sagemaker.readthedocs.io/en/stable/v2.html for details. #157
Closed
kartik-binzade closed 1 year ago
How can we solve this error please guide us.
Error: update_endpoint is a no-op in sagemaker>=2. See: https://sagemaker.readthedocs.io/en/stable/v2.html for details.
deploy your model in SageMaker and create Real-time inference endpoint:
from tensorflow.keras import backend from sagemaker.tensorflow.model import TensorFlowModel role = 'arn:aws:iam::ID:role/AmazonSageMaker-ExecutionRole-.........' sagemaker_model = TensorFlowModel(model_data='s3://sagemaker-ap-south-1-ID/model/model.tar.gz', role = role, framework_version = '1.12', entry_point = 'train.py')
%%time predictor = sagemaker_model.deploy(initial_instance_count=1, instance_type='ml.t3.medium') print("Success!") predictor.endpoint