fix: Complete the modelarts GetResourceStats of ai
Former-commit-id: b23d85fa84fa5ec5583f4abc304ec65c72560e83
This commit is contained in:
parent
bb2b8263a8
commit
4ed1e829bb
|
@ -205,6 +205,7 @@ func (m *ModelArtsLink) GetResourceStats(ctx context.Context) (*collector.Resour
|
|||
Type: CARD,
|
||||
Name: Npu,
|
||||
CardNum: int32(num32),
|
||||
TOpsAtFp16: float64(num32 * 320),
|
||||
}
|
||||
cards = append(cards, card)
|
||||
resourceStats.CardsAvail = cards
|
||||
|
|
|
@ -28,4 +28,5 @@ const (
|
|||
WaitStart = "WaitStart"
|
||||
Pending = "Pending"
|
||||
Stopped = "Stopped"
|
||||
Deploying = "Deploying"
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue