Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var GpuMetricUsedMap = map[FormatEnum.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[FormatEnum.GpuMetricType][]FormatTypes.Sample }
func NewGpuMetric ¶
func NewGpuMetric() *GpuMetric
type GpuMetricMap ¶
func NewGpuMetricMap ¶
func NewGpuMetricMap() GpuMetricMap
func (*GpuMetricMap) AddGpuMetric ¶
func (p *GpuMetricMap) AddGpuMetric(gpu *Gpu, metricType FormatEnum.GpuMetricType, sample FormatTypes.Sample)
type GpuPrediction ¶
type GpuPrediction struct { Gpu Granularity int64 Metrics []FormatTypes.PredictionSample }
func NewGpuPrediction ¶
func NewGpuPrediction() *GpuPrediction
type GpuPredictionMap ¶
type GpuPredictionMap map[FormatEnum.GpuMetricType][]*GpuPrediction
func NewGpuPredictionMap ¶
func NewGpuPredictionMap() GpuPredictionMap
func (*GpuPredictionMap) AddGpuPrediction ¶
func (p *GpuPredictionMap) AddGpuPrediction(gpu *Gpu, granularity int64, metricType FormatEnum.GpuMetricType, sample FormatTypes.PredictionSample)
type MetricsDAO ¶
type MetricsDAO interface {
ListMetrics(host, minorNumber string, metricTypes []FormatEnum.MetricType, condition *DBCommon.QueryCondition) (GpuMetricMap, error)
}
type PredictionsDAO ¶
type PredictionsDAO interface { CreatePredictions(GpuPredictionMap) error ListPredictions(host, minorNumber, modelId, predictionId, granularity string, condition *DBCommon.QueryCondition) (GpuPredictionMap, error) }
Click to show internal directories.
Click to hide internal directories.