存算联动修改
Former-commit-id: e6e7389ce22dd1928bfe759cdba7613b662524cd
This commit is contained in:
parent
1b07efc431
commit
ecd23ba389
|
@ -26,7 +26,7 @@ type ModelArtsLink struct {
|
|||
//)
|
||||
|
||||
func NewModelArtsLink(ctx context.Context, svcCtx *svc.ServiceContext, participant *models.ScParticipantPhyInfo) *ModelArtsLink {
|
||||
return &ModelArtsLink{ctx: ctx, svcCtx: svcCtx, platform: participant.Name, pageIndex: 1, pageSize: 100}
|
||||
return &ModelArtsLink{ctx: ctx, svcCtx: svcCtx, participant: participant, platform: participant.Name, pageIndex: 1, pageSize: 100}
|
||||
}
|
||||
|
||||
func (o *ModelArtsLink) UploadImage(path string) (interface{}, error) {
|
||||
|
|
|
@ -31,6 +31,7 @@ const (
|
|||
TYPE_SHUGUANGAI = "3"
|
||||
OCTOPUS = "Octopus"
|
||||
MODELARTS = "Modelarts"
|
||||
SHUGUANGAI = "ShuguangAi"
|
||||
DCU = "dcu"
|
||||
PYTORCH = "Pytorch"
|
||||
TASK_PYTORCH_PREFIX = "PytorchTask"
|
||||
|
@ -50,6 +51,7 @@ var (
|
|||
AITYPE = map[string]string{
|
||||
"1": OCTOPUS,
|
||||
"2": MODELARTS,
|
||||
"3": SHUGUANGAI,
|
||||
}
|
||||
)
|
||||
|
||||
|
|
Loading…
Reference in New Issue