Documentation
¶
Index ¶
- Variables
- type Device
- 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, channels int, width int, height int) 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 ¶
This section is empty.
Variables ¶
View Source
var ( Version = "0.4.1" BuildDate = "undefined" GitCommit = "undefined" )
Functions ¶
This section is empty.
Types ¶
type Device ¶
type Device int
const ( CPUDevice Device = Device(C.CPU_DEVICE_KIND) CUDADevice = Device(C.CUDA_DEVICE_KIND) )
type Predictor ¶
type Predictor struct {
// contains filtered or unexported fields
}
func (*Predictor) DisableProfiling ¶
func (*Predictor) EndProfiling ¶
func (*Predictor) ReadPredictionOutput ¶
func (*Predictor) ReadProfile ¶
func (*Predictor) StartProfiling ¶
Directories
¶
| Path | Synopsis |
|---|---|
|
examples
|
|
|
batch
command
|
|
|
batch_nvprof
command
|
|
|
batch_nvprof/nvprof_results
command
|
|
|
batch_onnx
command
|
|
Click to show internal directories.
Click to hide internal directories.