Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var GpuMetricUsedMap = map[DatahubMetric.GpuMetricType]bool{}
Functions ¶
This section is empty.
Types ¶
type GpuDAO ¶
type GpuDAO interface {
ListGpus(host, minorNumber string, condition *DBCommon.QueryCondition) ([]*Gpu, error)
}
type GpuMetadata ¶
type GpuMetric ¶
type GpuMetric struct { Gpu Metrics map[DatahubMetric.GpuMetricType][]DatahubMetric.Sample }
func NewGpuMetric ¶
func NewGpuMetric() *GpuMetric
type GpuMetricMap ¶
func NewGpuMetricMap ¶
func NewGpuMetricMap() GpuMetricMap
func (*GpuMetricMap) AddGpuMetric ¶
func (p *GpuMetricMap) AddGpuMetric(gpu *Gpu, metricType DatahubMetric.GpuMetricType, sample DatahubMetric.Sample)
type GpuPrediction ¶
type GpuPrediction struct { Gpu Granularity int64 ModelId string PredictionId string Metrics []DatahubMetric.Sample }
func NewGpuPrediction ¶
func NewGpuPrediction() *GpuPrediction
type GpuPredictionMap ¶
type GpuPredictionMap map[DatahubMetric.GpuMetricType][]*GpuPrediction
func NewGpuPredictionMap ¶
func NewGpuPredictionMap() GpuPredictionMap
func (*GpuPredictionMap) AddGpuPrediction ¶
func (p *GpuPredictionMap) AddGpuPrediction(gpu *Gpu, granularity int64, modelId, predictionId string, metricType DatahubMetric.GpuMetricType, sample DatahubMetric.Sample)
type MetricsDAO ¶
type MetricsDAO interface {
ListMetrics(host, minorNumber string, condition *DBCommon.QueryCondition) (GpuMetricMap, error)
}
type PredictionsDAO ¶
type PredictionsDAO interface { CreatePredictions(GpuPredictionMap) error ListPredictions(host, minorNumber, granularity string, condition *DBCommon.QueryCondition) (GpuPredictionMap, error) }
Click to show internal directories.
Click to hide internal directories.