tensorflow

package
v0.0.33 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package tensorflow provides implementation of Go API for extract data to vector

Package tensorflow provides implementation of Go API for extract data to vector

Index

Constants

View Source
const (
	TwoDim uint8 = iota + 2
	ThreeDim
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Operation

type Operation = tf.Operation

type Option

type Option func(*tensorflow)

func WithExportPath

func WithExportPath(path string) Option

func WithFeed added in v0.0.33

func WithFeed(operationName string, outputIndex int) Option

func WithFeeds added in v0.0.33

func WithFeeds(operationNames []string, outputIndexes []int) Option

func WithFetch added in v0.0.33

func WithFetch(operationName string, outputIndex int) Option

func WithFetches added in v0.0.33

func WithFetches(operationNames []string, outputIndexes []int) Option

func WithNdim added in v0.0.33

func WithNdim(ndim uint8) Option

func WithOperations

func WithOperations(opes ...*Operation) Option

func WithSessionConfig

func WithSessionConfig(cfg []byte) Option

func WithSessionOptions

func WithSessionOptions(opts *SessionOptions) Option

func WithSessionTarget

func WithSessionTarget(tgt string) Option

func WithTags

func WithTags(tags ...string) Option

type OutputSpec added in v0.0.33

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

type SessionOptions

type SessionOptions = tf.SessionOptions

type TF

type TF interface {
	GetVector(inputs ...string) ([]float64, error)
	GetValue(inputs ...string) (interface{}, error)
	GetValues(inputs ...string) (values []interface{}, err error)
	Close() error
}

func New

func New(opts ...Option) (TF, error)

Jump to

Keyboard shortcuts

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