InferenceSpecificationProperty Struct
Defines how to perform inference generation after a training job is run.
| Source | |
|---|---|
| Type last changed |
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_sagemaker as sagemaker } from 'aws-cdk-lib';
const inferenceSpecificationProperty: sagemaker.CfnModelCard.InferenceSpecificationProperty = {
containers: [{
image: 'image',
// the properties below are optional
modelDataUrl: 'modelDataUrl',
nearestModelName: 'nearestModelName',
}],
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_sagemaker as sagemaker
inference_specification_property = sagemaker.CfnModelCard.InferenceSpecificationProperty(
containers=[sagemaker.CfnModelCard.ContainerProperty(
image="image",
# the properties below are optional
model_data_url="modelDataUrl",
nearest_model_name="nearestModelName"
)]
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.sagemaker.*;
InferenceSpecificationProperty inferenceSpecificationProperty = InferenceSpecificationProperty.builder()
.containers(List.of(ContainerProperty.builder()
.image("image")
// the properties below are optional
.modelDataUrl("modelDataUrl")
.nearestModelName("nearestModelName")
.build()))
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Sagemaker;
var inferenceSpecificationProperty = new InferenceSpecificationProperty {
Containers = new [] { new ContainerProperty {
Image = "image",
// the properties below are optional
ModelDataUrl = "modelDataUrl",
NearestModelName = "nearestModelName"
} }
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
inferenceSpecificationProperty := &InferenceSpecificationProperty{
Containers: []interface{}{
&ContainerProperty{
Image: jsii.String("image"),
// the properties below are optional
ModelDataUrl: jsii.String("modelDataUrl"),
NearestModelName: jsii.String("nearestModelName"),
},
},
}
Properties
containersIResolvable | IResolvable | CfnModelCard.ContainerProperty[]containerstyping.Union[IResolvable, typing.List[typing.Union[IResolvable, ContainerProperty]]]containersIResolvableContainersIResolvableContainersinterface{} required #The Amazon ECR registry path of the Docker image that contains the inference code.