tensorflow::PartialTensorShape::dim_size()

int64 tensorflow::PartialTensorShape::dim_size(int d) const Returns the number of elements in dimension d. REQUIRES: 0 <= d < dims()

tensorflow::PartialTensorShape::dims()

int tensorflow::PartialTensorShape::dims() const Return the number of dimensions in the tensor. If the number of dimensions is unknown, return -1.

tensorflow::PartialTensorShape::DebugString()

string tensorflow::PartialTensorShape::DebugString() const For error messages.

tensorflow::PartialTensorShape::Concatenate()

PartialTensorShape tensorflow::PartialTensorShape::Concatenate(int64 size) const Add a dimension to the end ("inner-most"), returns a new PartialTensorShape . REQUIRES: size >= -1, where -1 means unknown

tensorflow::PartialTensorShape::AsTensorShape()

bool tensorflow::PartialTensorShape::AsTensorShape(TensorShape *tensor_shape) const

tensorflow::PartialTensorShape::AsProto()

void tensorflow::PartialTensorShape::AsProto(TensorShapeProto *proto) const Fill *proto from *this.

tensorflow::PartialTensorShape

Manages the partially known dimensions of a Tensor and their sizes. Member Details tensorflow::PartialTensorShape::PartialTensorShape() Construct an unknown PartialTensorShape. tensorflow::PartialTensorShape::PartialTensorShape(gtl::ArraySlice< int64 > dim_sizes) Construct a PartialTensorShape from the provided sizes. REQUIRES: dim_sizes[i] >= 0 tensorflow::PartialTensorShape::PartialTensorShape(std::initializer_list< int64 > dim_sizes) tensorflow::PartialTensorShape::PartialTens

tensorflow::EnvWrapper::target()

Env* tensorflow::EnvWrapper::target() const Returns the target to which this Env forwards all calls.

tensorflow::EnvWrapper::StartThread()

Thread* tensorflow::EnvWrapper::StartThread(const ThreadOptions &thread_options, const string &name, std::function< void()> fn) override Returns a new thread that is running fn() and is identified (for debugging/performance-analysis) by "name". Caller takes ownership of the result and must delete it eventually (the deletion will block until fn() stops running).

tensorflow::EnvWrapper::SleepForMicroseconds()

void tensorflow::EnvWrapper::SleepForMicroseconds(int64 micros) override Sleeps/delays the thread for the prescribed number of micro-seconds.