Documentation ¶
Overview ¶
Package predict_v2 provides primitives to interact the openapi HTTP API.
Code generated by github.com/deepmap/oapi-codegen DO NOT EDIT.
Index ¶
- type InferenceErrorResponse
- type InferenceRequest
- type InferenceResponse
- type MetadataModelResponse
- type MetadataServerErrorResponse
- type MetadataServerResponse
- type MetadataTensor
- type Parameters
- type PostV2ModelsMODELNAMEVersionsMODELVERSIONInferJSONBody
- type PostV2ModelsMODELNAMEVersionsMODELVERSIONInferJSONRequestBody
- type RequestInput
- type RequestOutput
- type ResponseOutput
- type TensorData
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InferenceErrorResponse ¶
type InferenceErrorResponse struct {
Error *string `json:"error,omitempty"`
}
InferenceErrorResponse defines model for inference_error_response.
type InferenceRequest ¶
type InferenceRequest struct { Id *string `json:"id,omitempty"` Inputs []RequestInput `json:"inputs"` Outputs *[]RequestOutput `json:"outputs,omitempty"` Parameters *Parameters `json:"parameters,omitempty"` }
InferenceRequest defines model for inference_request.
type InferenceResponse ¶
type InferenceResponse struct { Id *string `json:"id,omitempty"` ModelName string `json:"model_name"` ModelVersion *string `json:"model_version,omitempty"` Outputs []ResponseOutput `json:"outputs"` Parameters *Parameters `json:"parameters,omitempty"` }
InferenceResponse defines model for inference_response.
type MetadataModelResponse ¶
type MetadataModelResponse struct { Inputs *[]MetadataTensor `json:"inputs,omitempty"` Name string `json:"name"` Outputs *[]MetadataTensor `json:"outputs,omitempty"` Platform string `json:"platform"` Versions *[]string `json:"versions,omitempty"` }
MetadataModelResponse defines model for metadata_model_response.
type MetadataServerErrorResponse ¶
type MetadataServerErrorResponse struct {
Error string `json:"error"`
}
MetadataServerErrorResponse defines model for metadata_server_error_response.
type MetadataServerResponse ¶
type MetadataServerResponse struct { Extensions []string `json:"extensions"` Name string `json:"name"` Version string `json:"version"` }
MetadataServerResponse defines model for metadata_server_response.
type MetadataTensor ¶
type MetadataTensor struct { Datatype string `json:"datatype"` Name string `json:"name"` Shape []int `json:"shape"` }
MetadataTensor defines model for metadata_tensor.
type PostV2ModelsMODELNAMEVersionsMODELVERSIONInferJSONBody ¶
type PostV2ModelsMODELNAMEVersionsMODELVERSIONInferJSONBody InferenceRequest
PostV2ModelsMODELNAMEVersionsMODELVERSIONInferJSONBody defines parameters for PostV2ModelsMODELNAMEVersionsMODELVERSIONInfer.
type PostV2ModelsMODELNAMEVersionsMODELVERSIONInferJSONRequestBody ¶
type PostV2ModelsMODELNAMEVersionsMODELVERSIONInferJSONRequestBody PostV2ModelsMODELNAMEVersionsMODELVERSIONInferJSONBody
PostV2ModelsMODELNAMEVersionsMODELVERSIONInferJSONRequestBody defines body for PostV2ModelsMODELNAMEVersionsMODELVERSIONInfer for application/json ContentType.
type RequestInput ¶
type RequestInput struct { Data TensorData `json:"data"` Datatype string `json:"datatype"` Name string `json:"name"` Parameters *Parameters `json:"parameters,omitempty"` Shape []int `json:"shape"` }
RequestInput defines model for request_input.
type RequestOutput ¶
type RequestOutput struct { Name string `json:"name"` Parameters *Parameters `json:"parameters,omitempty"` }
RequestOutput defines model for request_output.
type ResponseOutput ¶
type ResponseOutput struct { Data TensorData `json:"data"` Datatype string `json:"datatype"` Name string `json:"name"` Parameters *Parameters `json:"parameters,omitempty"` Shape []int `json:"shape"` }
ResponseOutput defines model for response_output.