tensorrt

package module
v0.3.20 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2018 License: NCSA Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Version   = "0.3.20"
	BuildDate = "undefined"
	GitCommit = "undefined"
)

Functions

This section is empty.

Types

type Prediction

type Prediction struct {
	Index       int     `json:"index"`
	Probability float32 `json:"probability"`
}

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.

type Predictor

type Predictor struct {
}

func New

func New(opts0 ...options.Option) (*Predictor, error)

func (Predictor) Close

func (p Predictor) Close()

func (*Predictor) DisableProfiling

func (p *Predictor) DisableProfiling() error

func (*Predictor) EndProfiling

func (p *Predictor) EndProfiling() error

func (*Predictor) Predict

func (p *Predictor) Predict(input []float32) (Predictions, error)

func (*Predictor) ReadProfile

func (p *Predictor) ReadProfile() (string, error)

func (*Predictor) StartProfiling

func (p *Predictor) StartProfiling(name, metadata string) error

Jump to

Keyboard shortcuts

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