Documentation
¶
Index ¶
- Constants
- Variables
- func ReadBlob(protoFileName string) (*caffeproto.BlobProto, error)
- func SetUseCPU()
- func SetUseGPU()
- type Prediction
- type Predictions
- type Predictor
- func (p *Predictor) Close()
- func (p *Predictor) DisableProfiling() error
- func (p *Predictor) EndProfiling() error
- func (p *Predictor) Predict(ctx context.Context, data []float32) (Predictions, error)
- func (p *Predictor) ReadProfile() (string, error)
- func (p *Predictor) StartProfiling(name, metadata string) error
Constants ¶
View Source
const ( CPUMode = 0 GPUMode = 1 )
Variables ¶
View Source
var ( Version = "0.3.13" BuildDate = "undefined" GitCommit = "undefined" )
Functions ¶
func ReadBlob ¶
func ReadBlob(protoFileName string) (*caffeproto.BlobProto, error)
func SetUseCPU ¶
func SetUseCPU()
func SetUseGPU ¶
func SetUseGPU()
Types ¶
type Prediction ¶
type Predictions ¶
type Predictions []Prediction
func (Predictions) Len ¶
func (p Predictions) Len() int
Len is the number of elements in the collection.
func (Predictions) Less ¶
func (p Predictions) Less(i, j int) bool
Less reports whether the element with index i should sort before the element with index j.
func (Predictions) Sort ¶
func (p Predictions) Sort()
func (Predictions) Swap ¶
func (p Predictions) Swap(i, j int)
Swap swaps the elements with indexes i and j.
Source Files
¶
- cbits.go
- init.go
- lib.go
- prediction.go
- symbolizer.go
- unmarshal.go
- version.go
Click to show internal directories.
Click to hide internal directories.