tensorflow

Summary

Typedefs

StatusCallback typedef
std::function< void(const Status &)>

Functions

CreateURI(StringPiece scheme, StringPiece host, StringPiece path)
string
NewSession(const SessionOptions & options, Session **out_session)
Create a new session with the given options.
NewSession(const SessionOptions & options)
Create a new session with the given options.
ParseURI(StringPiece uri, StringPiece *scheme, StringPiece *host, StringPiece *path)
void
ReadBinaryProto(Env *env, const string & fname, ::tensorflow::protobuf::MessageLite *proto)
Reads contents of named file and parse as binary encoded proto data and store into *proto.
ReadFileToString(Env *env, const string & fname, string *data)
A utility routine: reads contents of named file into *data
Reset(const SessionOptions & options, const std::vector< string > & containers)
Resets resource containers associated with a target.
WriteBinaryProto(Env *env, const string & fname, const ::tensorflow::protobuf::MessageLite & proto)
Write binary representation of "proto" to the named file.
WriteStringToFile(Env *env, const string & fname, const StringPiece & data)
A utility routine: write contents of data to file named fname (overwriting existing contents, if any).
operator<<(std::ostream & os, const Status & x)
std::ostream &

Classes

tensorflow::Env

An interface used by the tensorflow implementation to access operating system functionality like the filesystem etc.

tensorflow::EnvWrapper

An implementation of Env that forwards all calls to another Env.

tensorflow::FileSystem

A generic interface for accessing a file system.

tensorflow::FileSystemRegistry

A registry for file system implementations.

tensorflow::PartialTensorShape

Manages the partially known dimensions of a Tensor and their sizes.

tensorflow::PartialTensorShapeUtils

Static helper routines for PartialTensorShape.

tensorflow::RandomAccessFile

A file abstraction for randomly reading the contents of a file.

tensorflow::ReadOnlyMemoryRegion

A readonly memmapped file abstraction.

tensorflow::Session

A Session instance lets a caller drive a TensorFlow graph computation.

tensorflow::Status

Denotes success or failure of a call in Tensorflow.

tensorflow::Tensor

Represents an n-dimensional array of values.

tensorflow::TensorShape

Represents the shape of a Tensor.

tensorflow::TensorShapeUtils

Static helper routines for TensorShape.

tensorflow::Thread

Represents a thread used to run a Tensorflow function.

tensorflow::WritableFile

A file abstraction for sequential writing.

Structs

tensorflow::SessionOptions

Configuration information for a Session.

tensorflow::TensorShapeDim

Represents the value of one dimension in a TensorShape.

tensorflow::ThreadOptions

Options to configure a Thread.

Typedefs

StatusCallback

std::function< void(const Status &)> StatusCallback

Functions

CreateURI

string CreateURI(
  StringPiece scheme,
  StringPiece host,
  StringPiece path
)

NewSession

Status NewSession(
  const SessionOptions & options,
  Session **out_session
)

Create a new session with the given options.

If session creation succeeds, the new Session will be stored in *out_session, the caller will take ownership of the returned *out_session, and this function will return OK(). Otherwise, this function will return an error status.

NewSession

Session * NewSession(
  const SessionOptions & options
)

Create a new session with the given options.

If a new Session object could not be created, this function will return nullptr.

Strongly prefer the version of NewSession that returns Status, which contains more helpful error information.

ParseURI

void ParseURI(
  StringPiece uri,
  StringPiece *scheme,
  StringPiece *host,
  StringPiece *path
)

ReadBinaryProto

Status ReadBinaryProto(
  Env *env,
  const string & fname,
  ::tensorflow::protobuf::MessageLite *proto
)

Reads contents of named file and parse as binary encoded proto data and store into *proto.

ReadFileToString

Status ReadFileToString(
  Env *env,
  const string & fname,
  string *data
)

A utility routine: reads contents of named file into *data

Reset

Status Reset(
  const SessionOptions & options,
  const std::vector< string > & containers
)

Resets resource containers associated with a target.

containers is a vector of string representation of resource container names. When a resource container is reset, the resources held by the container will be released. In particular, all Variables in the container will become undefined.

If Reset succeeds, this function will return OK(). Otherwise, this function will return an error status.

WriteBinaryProto

Status WriteBinaryProto(
  Env *env,
  const string & fname,
  const ::tensorflow::protobuf::MessageLite & proto
)

Write binary representation of "proto" to the named file.

WriteStringToFile

Status WriteStringToFile(
  Env *env,
  const string & fname,
  const StringPiece & data
)

A utility routine: write contents of data to file named fname (overwriting existing contents, if any).

operator<<

std::ostream & operator<<(
  std::ostream & os,
  const Status & x
)