edgetpu

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: May 17, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(device Device) delegates.Delegater

func Verbosity

func Verbosity(v int)

Verbosity sets the edgetpu verbosity

func Version

func Version() (string, error)

Version fetches the EdgeTPU runtime version information

Types

type Delegate

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

Delegate is the tflite delegate

func (*Delegate) Delete

func (d *Delegate) Delete()

Delete the delegate

func (*Delegate) Ptr

func (d *Delegate) Ptr() unsafe.Pointer

Return a pointer

type DelegateOptions

type DelegateOptions struct {
}

There are no options

type Device

type Device struct {
	Type DeviceType
	Path string
}

func DeviceList

func DeviceList() ([]Device, error)

DeviceList fetches a list of devices

type DeviceType

type DeviceType uint32
const (
	// The Device Types
	TypeApexPCI DeviceType = C.EDGETPU_APEX_PCI
	TypeApexUSB DeviceType = C.EDGETPU_APEX_USB
)

Jump to

Keyboard shortcuts

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