tensorflow

package
v0.0.26 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 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

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Feed

type Feed struct {
	InputBytes    []byte
	OperationName string
	OutputIndex   int
}

type Fetch

type Fetch struct {
	OperationName string
	OutputIndex   int
}

type Operation

type Operation = tf.Operation

type Option

type Option func(*tensorflow)

func WithExportPath

func WithExportPath(path string) 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 SessionOptions

type SessionOptions = tf.SessionOptions

type TF

type TF interface {
	GetVector(feeds []Feed, fetches []Fetch, targets ...*Operation) (values [][][]float64, 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