implementations

package
Version: v1.0.1 Latest Latest
Warning

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

Go to latest
Published: May 17, 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 added in v1.0.1

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 added in v1.0.1

func (m *AIModel) Backend() string

func (*AIModel) Blob added in v1.0.1

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

func (*AIModel) Device added in v1.0.1

func (m *AIModel) Device() string

func (*AIModel) Inputs added in v1.0.1

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

func (*AIModel) Outputs added in v1.0.1

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

func (*AIModel) SetBackend added in v1.0.1

func (m *AIModel) SetBackend(backend string)

func (*AIModel) SetBlob added in v1.0.1

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

func (*AIModel) SetBlobFromFile added in v1.0.1

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

func (*AIModel) SetDevice added in v1.0.1

func (m *AIModel) SetDevice(device string)

func (*AIModel) SetInputs added in v1.0.1

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

func (*AIModel) SetOutputs added in v1.0.1

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

func (*AIModel) SetTag added in v1.0.1

func (m *AIModel) SetTag(tag string)

func (*AIModel) Tag added in v1.0.1

func (m *AIModel) Tag() string

type AITensor added in v1.0.1

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 []int64, data interface{}) *AITensor

func NewAiTensorWithShape

func NewAiTensorWithShape(shape []int64) *AITensor

func (*AITensor) Data added in v1.0.1

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

func (*AITensor) Dtype added in v1.0.1

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

func (*AITensor) Len added in v1.0.1

func (t *AITensor) Len() int64

func (*AITensor) NumDims added in v1.0.1

func (t *AITensor) NumDims() int64

func (*AITensor) SetData added in v1.0.1

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

func (*AITensor) SetShape added in v1.0.1

func (m *AITensor) SetShape(shape []int64)

func (*AITensor) Shape added in v1.0.1

func (m *AITensor) Shape() []int64

Jump to

Keyboard shortcuts

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