TensorFlow教程之API DOC 6.1.10 Class tensorflow::TensorShapeUtils

本文档为TensorFlow参考文档,本转载已得到TensorFlow中文社区授权。


Class tensorflow::TensorShapeUtils

Static helper routines for TensorShape. Includes a few common predicates on a tensor shape.

Member Summary

Member Details

static bool tensorflow::TensorShapeUtils::IsScalar(const TensorShape &shape)

static bool tensorflow::TensorShapeUtils::IsVector(const TensorShape &shape)

static bool tensorflow::TensorShapeUtils::IsLegacyScalar(const TensorShape &shape)

static bool tensorflow::TensorShapeUtils::IsLegacyVector(const TensorShape &shape)

static bool tensorflow::TensorShapeUtils::IsVectorOrHigher(const TensorShape &shape)

static bool tensorflow::TensorShapeUtils::IsMatrix(const TensorShape &shape)

static bool tensorflow::TensorShapeUtils::IsMatrixOrHigher(const TensorShape &shape)

static TensorShape tensorflow::TensorShapeUtils::MakeShape(const T *dims, int n)

Returns a TensorShape whose dimensions are dims[0]dims[1], ..., dims[n-1].

static string tensorflow::TensorShapeUtils::ShapeListString(const gtl::ArraySlice< TensorShape > &shapes)

static bool tensorflow::TensorShapeUtils::StartsWith(const TensorShape &shape0, const TensorShape &shape1)

时间: 2024-12-03 03:47:03

TensorFlow教程之API DOC 6.1.10 Class tensorflow::TensorShapeUtils的相关文章

TensorFlow教程之API DOC 6.3.10. NN

本文档为TensorFlow参考文档,本转载已得到TensorFlow中文社区授权. Neural Network Note: Functions taking Tensor arguments can also take anything accepted by tf.convert_to_tensor. Contents Neural Network Activation Functions tf.nn.relu(features, name=None) tf.nn.relu6(featur

TensorFlow教程之API DOC 6.1.6 Class tensorflow::Tensor

本文档为TensorFlow参考文档,本转载已得到TensorFlow中文社区授权. Class tensorflow::Tensor Represents an n-dimensional array of values. Member Summary tensorflow::Tensor::Tensor() Default Tensor constructor. Creates a 1-dimension, 0-element float tensor. tensorflow::Tensor

TensorFlow教程之API DOC 6.1.5 Class tensorflow::Status

本文档为TensorFlow参考文档,本转载已得到TensorFlow中文社区授权. Class tensorflow::Status Member Summary tensorflow::Status::Status() Create a success status. tensorflow::Status::~Status() tensorflow::Status::Status(tensorflow::error::Code code, tensorflow::StringPiece ms

TensorFlow教程之API DOC 6.1.8 Class tensorflow::TensorShape

本文档为TensorFlow参考文档,本转载已得到TensorFlow中文社区授权. Class tensorflow::TensorShape Manages the dimensions of a Tensor and their sizes. Member Summary tensorflow::TensorShape::TensorShape(gtl::ArraySlice< int64 > dim_sizes) Construct a TensorShape from the pro

TensorFlow教程之API DOC 6.1.7 Class tensorflow::TensorBuffer

本文档为TensorFlow参考文档,本转载已得到TensorFlow中文社区授权. Class tensorflow::TensorBuffer Member Summary tensorflow::TensorBuffer::~TensorBuffer() override virtual void* tensorflow::TensorBuffer::data() const =0 virtual size_t tensorflow::TensorBuffer::size() const

TensorFlow教程之API DOC 6.1.11 Class tensorflow::Thread

本文档为TensorFlow参考文档,本转载已得到TensorFlow中文社区授权. Class tensorflow::Thread Member Summary tensorflow::Thread::Thread() virtual tensorflow::Thread::~Thread() Blocks until the thread of control stops running. Member Details tensorflow::Thread::Thread() virtua

TensorFlow教程之API DOC 6.1.12 Class tensorflow::WritableFile

本文档为TensorFlow参考文档,本转载已得到TensorFlow中文社区授权. Class tensorflow::WritableFile A file abstraction for sequential writing. The implementation must provide buffering since callers may append small fragments at a time to the file. Member Summary tensorflow::

TensorFlow教程之API DOC 6.1.9 Class tensorflow::TensorShapeIter

本文档为TensorFlow参考文档,本转载已得到TensorFlow中文社区授权. Class tensorflow::TensorShapeIter Member Summary tensorflow::TensorShapeIter::TensorShapeIter(const TensorShape *shape, int d) bool tensorflow::TensorShapeIter::operator==(const TensorShapeIter &rhs) bool te

TensorFlow教程之API DOC 6.1.3 Class tensorflow::RandomAccessFile

本文档为TensorFlow参考文档,本转载已得到TensorFlow中文社区授权. Class tensorflow::RandomAccessFile A file abstraction for randomly reading the contents of a file. Member Summary tensorflow::RandomAccessFile::RandomAccessFile() virtual tensorflow::RandomAccessFile::~Rando