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

    xiaoxiao2021-07-19  197

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

    Class tensorflow::TensorShapeUtils

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

    Member Summary

    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)

    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)

    相关资源:最新版windows VirtualBox-6.1.10-138449-Win.exe

    最新回复(0)