tensorflow::Tensor::BufferHash()

size_t tensorflow::Tensor::BufferHash() const

tensorflow::Tensor::dims()

int tensorflow::Tensor::dims() const Convenience accessor for the tensor shape. For all shape accessors, see comments for relevant methods of TensorShape in tensor_shape.h.

tensorflow::Tensor::DebugString()

string tensorflow::Tensor::DebugString() const A human-readable summary of the tensor suitable for debugging.

tensorflow::Tensor::dim_size()

int64 tensorflow::Tensor::dim_size(int d) const Convenience accessor for the tensor shape.

tensorflow::Tensor::AsProtoField()

void tensorflow::Tensor::AsProtoField(TensorProto *proto) const Fills in proto with *this tensor's content. AsProtoField() fills in the repeated field for proto.dtype(), while AsProtoTensorContent() encodes the content in proto.tensor_content() in a compact form.

tensorflow::Status::Update()

void tensorflow::Status::Update(const Status &new_status) If ok(), stores new_status into *this. If !ok(), preserves the current status, but may augment with additional information about new_status. Convenient way of keeping track of the first error encountered. Instead of: if (overall_status.ok()) overall_status = new_status Use: overall_status.Update(new_status);

tensorflow::Tensor

Represents an n-dimensional array of values. Member Details tensorflow::Tensor::Tensor() Creates a 1-dimensional, 0-element float tensor. The returned Tensor is not a scalar (shape {}), but is instead an empty one-dimensional Tensor (shape {0}, NumElements() == 0). Since it has no elements, it does not need to be assigned a value and is initialized by default ( IsInitialized() is true). If this is undesirable, consider creating a one-element scalar which does require initialization: tensorflow:

tensorflow::Tensor::bit_casted_shaped()

TTypes< T, NDIMS >::ConstTensor tensorflow::Tensor::bit_casted_shaped(gtl::ArraySlice< int64 > new_sizes) const Return the tensor data to an Eigen::Tensor with the new shape specified in new_sizes and cast to a new dtype T. Using a bitcast is useful for move and copy operations. The allowed bitcast is the only difference from shaped().

tensorflow::Status::ToString()

string tensorflow::Status::ToString() const Return a string representation of this status suitable for printing. Returns the string "OK" for success.

tensorflow::Tensor::bit_casted_shaped()

TTypes< T, NDIMS >::Tensor tensorflow::Tensor::bit_casted_shaped(gtl::ArraySlice< int64 > new_sizes) Return the tensor data to an Eigen::Tensor with the new shape specified in new_sizes and cast to a new dtype T. Using a bitcast is useful for move and copy operations. The allowed bitcast is the only difference from shaped().