find

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2019 License: MIT Imports: 3 Imported by: 0

README

op/find

this is a simple go wrapper on TensorFlow linear algebra functions.

installation

install Go API for TensorFlow https://www.tensorflow.org/install/lang_go

$ go get github.com/sdeoras/comp/...

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Op

type Op struct {
	// It embeds common op
	common.Op
}

Op is the operator for TF interface.

func NewOperator

func NewOperator(options *tf.SessionOptions) (*Op, error)

NewOperator provides an instance of new operator for interfacing with TF.

func (*Op) Unique

func (op *Op) Unique(input []float64) ([]float64, []int, error)

type Operator

type Operator interface {
	// Unique finds unique elements in x and returns a sorted slice along
	// with the counts of each of those elements.
	Unique(x []float64) ([]float64, []int, error)
}

Operator defines several operations on float64 data type.

Jump to

Keyboard shortcuts

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