kernel

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2019 License: GPL-3.0, GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetModelOps

func GetModelOps(lib *plugin.Plugin, file []byte) (uint64, error)

Types

type Model

type Model struct {
	// contains filtered or unexported fields
}

func New

func New(lib *plugin.Plugin, deviceId int, modelCfg, modelBin []byte) *Model

func (*Model) Free

func (m *Model) Free()

func (*Model) GetInputLength

func (m *Model) GetInputLength() int

func (*Model) GetOutputLength

func (m *Model) GetOutputLength() int

func (*Model) Ops

func (m *Model) Ops() int64

func (*Model) Predict

func (m *Model) Predict(data []byte) ([]byte, error)

func (*Model) Size

func (m *Model) Size() int64

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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