Documentation ¶
Index ¶
- Variables
- type DType
- type ModelFormat
- type Predictor
- func (p *Predictor) Close()
- func (p *Predictor) EndProfiling() error
- func (p *Predictor) GetOptions() *options.Options
- func (p *Predictor) Predict(ctx context.Context, data []float32) error
- func (p *Predictor) ReadPredictionOutput(name string) []float32
- func (p *Predictor) ReadPredictionOutputs(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.0" BuildDate = "undefined" GitCommit = "undefined" )
Functions ¶
This section is empty.
Types ¶
type DType ¶
type DType C.TensorRT_DType
DType tensor scalar data type
const ( UnknownType DType = C.TensorRT_Unknown // Byte byte tensors (go type uint8) Byte DType = C.TensorRT_Byte // Char char tensor (go type int8) Char DType = C.TensorRT_Char // Int int tensor (go type int32) Int DType = C.TensorRT_Int // Long long tensor (go type int64) Long DType = C.TensorRT_Long // Float tensor (go type float32) Float DType = C.TensorRT_Float // Double tensor (go type float64) Double DType = C.TensorRT_Double )
type ModelFormat ¶
type ModelFormat int
ModelFormat ...
const ( ModelFormatCaffe ModelFormat = 1 ModelFormatOnnx ModelFormat = 2 ModelFormatUff ModelFormat = 3 ModelFormatUnknown ModelFormat = 999 )
func ClassifyModelFormat ¶
func ClassifyModelFormat(path string) ModelFormat
type Predictor ¶
type Predictor struct {
// contains filtered or unexported fields
}
func (*Predictor) EndProfiling ¶
func (*Predictor) GetOptions ¶
func (*Predictor) ReadPredictionOutput ¶
ReadPredictionOutput ...
func (*Predictor) ReadPredictionOutputs ¶
func (*Predictor) ReadProfile ¶
func (*Predictor) StartProfiling ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.