tensorflow::TensorShape::Clear()

void tensorflow::TensorShape::Clear() Clear a tensor shape.

tensorflow::TensorShape::AsProto()

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

tensorflow::TensorShape::dim_sizes()

gtl::InlinedVector< int64, 4 > tensorflow::TensorShape::dim_sizes() const Returns sizes of all dimensions.

tensorflow::TensorShape::dim_size()

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

tensorflow::TensorShape::DebugString()

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

tensorflow::TensorShape::begin()

TensorShapeIter tensorflow::TensorShape::begin() const For iterating through the dimensions.

tensorflow::TensorShape::AsEigenDSizes()

Eigen::DSizes< Eigen::DenseIndex, NDIMS > tensorflow::TensorShape::AsEigenDSizes() const Fill *dsizes from *this.

tensorflow::Tensor::vec()

TTypes<T>::Vec tensorflow::Tensor::vec() Return the tensor data as an Eigen::Tensor with the type and sizes of this Tensor. Use these methods when you know the data type and the number of dimensions of the Tensor and you want an Eigen::Tensor automatically sized to the Tensor sizes. The implementation check fails if either type or sizes mismatch. Example: Tensor my_mat(...built with Shape{rows: 3, cols: 5}...); auto mat = my_mat.matrix<T>(); // 2D Eigen::Tensor, 3 x 5. auto mat

tensorflow::TensorShape

Member Details uint8 tensorflow::TensorShape::buf[16][16] Rep64* tensorflow::TensorShape::unused_aligner tensorflow::TensorShape::TensorShape(gtl::ArraySlice< int64 > dim_sizes) Construct a TensorShape from the provided sizes. REQUIRES: dim_sizes[i] >= 0 tensorflow::TensorShape::TensorShape(std::initializer_list< int64 > dim_sizes) tensorflow::TensorShape::TensorShape(const TensorShapeProto &proto) REQUIRES: IsValid(proto) tensorflow::TensorShape::TensorShape() Create a tenso

tensorflow::TensorShape::AddDim()

void tensorflow::TensorShape::AddDim(int64 size) Add a dimension to the end ("inner-most"). REQUIRES: size >= 0