v2inferenceprotocol

package
v1.27.0-alpha.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 10, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	InferPowerConsumptionRequestInputName = "predict-prob"
)

Functions

This section is empty.

Types

type PowerConsumptionPredictor

type PowerConsumptionPredictor struct {
	// contains filtered or unexported fields
}

func NewPowerConsumptionPredictor

func NewPowerConsumptionPredictor(address, modelName, modelVersion string, insecureSkipVerify bool, timeout time.Duration, editorFns ...util.RequestEditorFn) *PowerConsumptionPredictor

func (*PowerConsumptionPredictor) Endpoint

func (p *PowerConsumptionPredictor) Endpoint() (string, error)

Endpoint constructs the API endpoint.

There is 2 types of URL.

func (*PowerConsumptionPredictor) Predict

func (p *PowerConsumptionPredictor) Predict(ctx context.Context, cpuUsage, inletTemp, deltaP float64) (watt float64, err error)

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL