tensorflow

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2021 License: Apache-2.0 Imports: 3 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

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Closer added in v0.0.39

type Closer = io.Closer

Closer is a type alias io.Closer.

type Operation

type Operation = tf.Operation

Operation is a type alias for tensorflow.Operation.

type Option

type Option func(*tensorflow)

Option is tensorflow configure.

func WithExportPath

func WithExportPath(path string) Option

WithExportPath returns Option that sets exportDir.

func WithFeed added in v0.0.33

func WithFeed(operationName string, outputIndex int) Option

WithFeed returns Option that sets feeds.

func WithFeeds added in v0.0.33

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

WithFeeds returns Option that sets feeds.

func WithFetch added in v0.0.33

func WithFetch(operationName string, outputIndex int) Option

WithFetch returns Option that sets fetches.

func WithFetches added in v0.0.33

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

WithFetches returns Option that sets fetches.

func WithNdim added in v0.0.33

func WithNdim(ndim uint8) Option

WithNdim returns Option that sets ndim.

func WithOperations

func WithOperations(opes ...*Operation) Option

WithOperations returns Option that sets operations.

func WithSessionConfig

func WithSessionConfig(cfg []byte) Option

WithSessionConfig returns Option that sets config.

func WithSessionOptions

func WithSessionOptions(opts *SessionOptions) Option

WithSessionOptions returns Option that sets options.

func WithSessionTarget

func WithSessionTarget(tgt string) Option

WithSessionTarget returns Option that sets target.

func WithTags

func WithTags(tags ...string) Option

WithTags returns Option that sets tags.

func WithWarmupInputs added in v0.0.48

func WithWarmupInputs(warmupInputs ...string) Option

WithWarmupInputs returns Option that sets warmupInputs.

type OutputSpec added in v0.0.33

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

OutputSpec is the specification of an feed/fetch.

type SessionOptions

type SessionOptions = tf.SessionOptions

SessionOptions is a type alias for tensorflow.SessionOptions.

type TF

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

TF represents a tensorflow interface.

func New

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

New load a tensorlfow model and returns a new tensorflow struct.

Jump to

Keyboard shortcuts

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