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.
Click to show internal directories.
Click to hide internal directories.