updated inference.api
Former-commit-id: 796f5afe078150063b00a51c61cafa266578dc68
This commit is contained in:
parent
e650da868a
commit
d7ebdebfea
|
@ -3,6 +3,8 @@ syntax = "v1"
|
||||||
type (
|
type (
|
||||||
/******************image inference*************************/
|
/******************image inference*************************/
|
||||||
DeployInstance {
|
DeployInstance {
|
||||||
|
Id string `json:"id"`
|
||||||
|
DeployTaskId string `json:"deployTaskId"`
|
||||||
InstanceId string `json:"instanceId"`
|
InstanceId string `json:"instanceId"`
|
||||||
InstanceName string `json:"instanceName"`
|
InstanceName string `json:"instanceName"`
|
||||||
AdapterId string `json:"adapterId"`
|
AdapterId string `json:"adapterId"`
|
||||||
|
@ -13,6 +15,9 @@ type (
|
||||||
ModelType string `json:"modelType"`
|
ModelType string `json:"modelType"`
|
||||||
InferCard string `json:"inferCard"`
|
InferCard string `json:"inferCard"`
|
||||||
Status string `json:"status"`
|
Status string `json:"status"`
|
||||||
|
CreateTime string `json:"createTime"`
|
||||||
|
UpdateTime string `json:"updateTime"`
|
||||||
|
ClusterType string `json:"clusterType"`
|
||||||
}
|
}
|
||||||
|
|
||||||
/******************image inference*************************/
|
/******************image inference*************************/
|
||||||
|
@ -33,7 +38,7 @@ type (
|
||||||
TaskName string `form:"taskName"`
|
TaskName string `form:"taskName"`
|
||||||
TaskDesc string `form:"taskDesc"`
|
TaskDesc string `form:"taskDesc"`
|
||||||
ModelType string `form:"modelType"`
|
ModelType string `form:"modelType"`
|
||||||
Instances []DeployInstance `form:"instances"`
|
Instances []*DeployInstance `form:"instances"`
|
||||||
Strategy string `form:"strategy,,optional"`
|
Strategy string `form:"strategy,,optional"`
|
||||||
StaticWeightMap map[string]int32 `form:"staticWeightMap,optional"`
|
StaticWeightMap map[string]int32 `form:"staticWeightMap,optional"`
|
||||||
Replica int32 `form:"replicas,optional"`
|
Replica int32 `form:"replicas,optional"`
|
||||||
|
|
|
@ -5905,6 +5905,8 @@ type Category struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
type DeployInstance struct {
|
type DeployInstance struct {
|
||||||
|
Id string `json:"id"`
|
||||||
|
DeployTaskId string `json:"deployTaskId"`
|
||||||
InstanceId string `json:"instanceId"`
|
InstanceId string `json:"instanceId"`
|
||||||
InstanceName string `json:"instanceName"`
|
InstanceName string `json:"instanceName"`
|
||||||
AdapterId string `json:"adapterId"`
|
AdapterId string `json:"adapterId"`
|
||||||
|
@ -5915,6 +5917,9 @@ type DeployInstance struct {
|
||||||
ModelType string `json:"modelType"`
|
ModelType string `json:"modelType"`
|
||||||
InferCard string `json:"inferCard"`
|
InferCard string `json:"inferCard"`
|
||||||
Status string `json:"status"`
|
Status string `json:"status"`
|
||||||
|
CreateTime string `json:"createTime"`
|
||||||
|
UpdateTime string `json:"updateTime"`
|
||||||
|
ClusterType string `json:"clusterType"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type ModelTypesResp struct {
|
type ModelTypesResp struct {
|
||||||
|
@ -5930,13 +5935,13 @@ type ModelNamesResp struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
type ImageInferenceReq struct {
|
type ImageInferenceReq struct {
|
||||||
TaskName string `form:"taskName"`
|
TaskName string `form:"taskName"`
|
||||||
TaskDesc string `form:"taskDesc"`
|
TaskDesc string `form:"taskDesc"`
|
||||||
ModelType string `form:"modelType"`
|
ModelType string `form:"modelType"`
|
||||||
Instances []DeployInstance `form:"instances"`
|
Instances []*DeployInstance `form:"instances"`
|
||||||
Strategy string `form:"strategy,,optional"`
|
Strategy string `form:"strategy,,optional"`
|
||||||
StaticWeightMap map[string]int32 `form:"staticWeightMap,optional"`
|
StaticWeightMap map[string]int32 `form:"staticWeightMap,optional"`
|
||||||
Replica int32 `form:"replicas,optional"`
|
Replica int32 `form:"replicas,optional"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type ImageInferenceResp struct {
|
type ImageInferenceResp struct {
|
||||||
|
|
Loading…
Reference in New Issue