fakemodel

package
v0.2.5 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Models = map[string][]int{
	"resnet50-imagenet": resnet50Imagenet,
	"vgg16-imagenet":    vgg16Imagenet,
	"slp-mnist":         slpMNIST,
	"bert":              bert,
}
View Source
var Names = func(m map[string][]int) []string {
	var ks []string
	for k := range m {
		ks = append(ks, k)
	}
	sort.Strings(ks)
	return ks
}(Models)

Functions

This section is empty.

Types

type DoubleBuffer

type DoubleBuffer struct {
	SendBuf *kb.Vector
	RecvBuf *kb.Vector
}

func NewDoubleBuffer added in v0.2.0

func NewDoubleBuffer(dtype kb.DataType, count int) DoubleBuffer

type FakeModel

type FakeModel struct {
	Names   []string
	Buffers map[string]DoubleBuffer
}

func New

func New(sizes []int, dtype kb.DataType, fuse bool) *FakeModel

func (*FakeModel) Info

func (m *FakeModel) Info() string

func (*FakeModel) MaxSize

func (m *FakeModel) MaxSize() int

func (*FakeModel) MinSize

func (m *FakeModel) MinSize() int

func (*FakeModel) ShowInfo

func (m *FakeModel) ShowInfo()

func (*FakeModel) Size

func (m *FakeModel) Size() int

Jump to

Keyboard shortcuts

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