example

package
v0.0.0-...-f32be47 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2019 License: MIT, MIT Imports: 2 Imported by: 0

Documentation

Overview

package example gives you some syntactic sugar to build tensorflow.Example protobufs in a more intuitive way.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(features map[string]interface{}) *tensorflow.Example

New builds and returns am Example protobuf based on the contents of features. The values of features will be massaged to work: single values will be turned into one element slices. Supported types: byte, string (converted to []byte), float32, int64, int (converted to int64), slices of supported types, and *tensorflow.Feature (this is an escape hatch).

This function will panic if you pass it an unsupported type.

Types

This section is empty.

Jump to

Keyboard shortcuts

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