Documentation
¶
Index ¶
- Constants
- Variables
- func ReadBlob(protoFileName string) (*caffeproto.BlobProto, error)
- func SetUseCPU()
- func SetUseGPU()
- 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) error
- func (p *Predictor) ReadPredictionOutput(ctx context.Context) ([]float32, 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.4.0" BuildDate = "undefined" GitCommit = "undefined" )
Functions ¶
Types ¶
type Predictor ¶
type Predictor struct {
// contains filtered or unexported fields
}
func (*Predictor) DisableProfiling ¶ added in v0.3.11
func (*Predictor) EndProfiling ¶ added in v0.3.11
func (*Predictor) ReadPredictionOutput ¶ added in v0.4.0
func (*Predictor) ReadProfile ¶ added in v0.3.11
func (*Predictor) StartProfiling ¶ added in v0.3.11
Click to show internal directories.
Click to hide internal directories.