In AWS SageMaker, what's the difference between `sagemaker_runtime.invoke_endpoint` and `predictor.predict`?

huangapple go评论48阅读模式
英文:

In AWS SageMaker, what's the difference between `sagemaker_runtime.invoke_endpoint` and `predictor.predict`?

问题

  1. sagemaker_runtime.invoke_endpoint
  2. predictor.predict

这两种方法之间有什么区别吗?

英文:

I see there are two ways to trigger a model:

  1. sagemaker_runtime.invoke_endpoint
  2. predictor.predict

Is there a difference between the two?

答案1

得分: 1

Boto3的sagemaker_runtime.invoke_endpoint映射到底层的InvokeEndpoint API

predictor.predict是高级SDK调用,封装了sagemaker_runtime.invoke_endpoint

英文:

Boto3 sagemaker_runtime.invoke_endpoint maps to the low level InvokeEndpoint API

predictor.predict is the High level SDK call which is wrapping the sagemaker_runtime.invoke_endpoint.

huangapple
  • 本文由 发表于 2023年7月3日 05:35:32
  • 转载请务必保留本文链接:https://go.coder-hub.com/76600893.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定