layers

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: 4 Imported by: 0

README

layers

this is a simple go wrapper on TensorFlow api for working image data packaging for ML.

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) FlattenImage

func (op *Op) FlattenImage(image image.Image) ([]byte, error)

func (*Op) FlattenSlice

func (op *Op) FlattenSlice(imageSlice image.Slice) ([]byte, error)

type Operator

type Operator interface {
	FlattenImage(image image.Image) ([]byte, error)
	FlattenSlice(imageSlice image.Slice) ([]byte, error)
}

Jump to

Keyboard shortcuts

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