internal

package
v0.0.0-...-8b6a76b Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2018 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrInvalidImageTensor occurs when the tensor does not exhibit the
	// structure or appearance of an image.
	ErrInvalidImageTensor = errors.New("invalid image tensor")
)

Functions

func TensorToImage

func TensorToImage(t *tf.Tensor) (image.Image, error)

TensorToImage converts a tf.Tensor into an image.Image. It determines the type of image (RGB vs Gray) and returns an error if the Tensor is not a valid image.

Types

This section is empty.

Jump to

Keyboard shortcuts

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