LocalSagemakerRuntimeClient | R Documentation |
A SageMaker Runtime client that calls a local endpoint only.
A SageMaker Runtime client that calls a local endpoint only.
new()
Initializes a LocalSageMakerRuntimeClient.
LocalSagemakerRuntimeClient$new(config = NULL)
config
(list): Optional configuration for this client. In particular only the local port is read.
invoke_endpoint()
Invoke the endpoint.
LocalSagemakerRuntimeClient$invoke_endpoint( Body, EndpointName, ContentType = NULL, Accept = NULL, CustomAttributes = NULL, TargetModel = NULL, TargetVariant = NULL, InferenceId = NULL )
Body
: Input data for which you want the model to provide inference.
EndpointName
: The name of the endpoint that you specified when you created the endpoint using the CreateEndpoint API.
ContentType
: The MIME type of the input data in the request body (Default value = None)
Accept
: The desired MIME type of the inference in the response (Default value = None)
CustomAttributes
: Provides additional information about a request for an inference submitted to a model hosted at an Amazon SageMaker endpoint (Default value = None)
TargetModel
: The model to request for inference when invoking a multi-model endpoint (Default value = None)
TargetVariant
: Specify the production variant to send the inference request to when invoking an endpoint that is running two or more variants (Default value = None)
InferenceId
: If you provide a value, it is added to the captured data when you enable data capture on the endpoint (Default value = None)
object: Inference for the given input.
clone()
The objects of this class are cloneable with this method.
LocalSagemakerRuntimeClient$clone(deep = FALSE)
deep
Whether to make a deep clone.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.