implementations

package
v0.99.1 Latest Latest
Warning

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

Go to latest
Published: May 5, 2020 License: BSD-3-Clause Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AiModel

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

func NewEmptyModel

func NewEmptyModel() *AiModel

func NewModel

func NewModel(backend string, device string) *AiModel

func (*AiModel) Backend

func (m *AiModel) Backend() string

func (*AiModel) Blob

func (m *AiModel) Blob() []byte

func (*AiModel) Device

func (m *AiModel) Device() string

func (*AiModel) Inputs

func (m *AiModel) Inputs() []string

func (*AiModel) Outputs

func (m *AiModel) Outputs() []string

func (*AiModel) SetBackend

func (m *AiModel) SetBackend(backend string)

func (*AiModel) SetBlob

func (m *AiModel) SetBlob(blob []byte)

func (*AiModel) SetBlobFromFile

func (m *AiModel) SetBlobFromFile(path string) (err error)

func (*AiModel) SetDevice

func (m *AiModel) SetDevice(device string)

func (*AiModel) SetInputs

func (m *AiModel) SetInputs(inputs []string)

func (*AiModel) SetOutputs

func (m *AiModel) SetOutputs(outputs []string)

type AiTensor

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

TensorInterface is an interface that represents the skeleton of a tensor ( n-dimensional array of numerical data ) needed to map it to a RedisAI Model with the proper operations

func NewAiTensor

func NewAiTensor() *AiTensor

func NewAiTensorWithData

func NewAiTensorWithData(typestr string, shape []int, data interface{}) *AiTensor

func NewAiTensorWithShape

func NewAiTensorWithShape(shape []int) *AiTensor

func (*AiTensor) Data

func (m *AiTensor) Data() interface{}

func (*AiTensor) Dtype

func (t *AiTensor) Dtype() reflect.Type

func (*AiTensor) Len

func (t *AiTensor) Len() int

func (*AiTensor) NumDims

func (t *AiTensor) NumDims() int

func (*AiTensor) SetData

func (m *AiTensor) SetData(data interface{})

func (*AiTensor) SetShape

func (m *AiTensor) SetShape(shape []int)

func (*AiTensor) Shape

func (m *AiTensor) Shape() []int

Jump to

Keyboard shortcuts

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