tensorflow:: ops:: AsString

#include <string_ops.h>

يحوّل كل عنصر في الموتر المعطى إلى سلاسل نصية.

ملخص

يدعم العديد من الأنواع الرقمية والقيم المنطقية.

للحصول على معلومات حول Unicode، راجع البرنامج التعليمي [ https://www.tensorflow.org/tutorials/representation/unicode ](العمل مع نص Unicode).

الحجج:

السمات الاختيارية (انظر Attrs ):

  • الدقة: دقة الأرقام العشرية المستخدمة للأعداد العشرية. تُستخدم فقط إذا كانت الدقة أكبر من -1.
  • علمي: استخدم الترميز العلمي للأرقام العشرية.
  • أقصر: استخدم أقصر تمثيل (سواء كان علميًا أو قياسيًا) للأرقام العشرية.
  • العرض: قم بإضافة حشو قبل الأرقام العشرية إلى هذا العرض. ينطبق على كل من الأرقام العشرية والأعداد الصحيحة. يُستخدم فقط إذا كان العرض > -1.
  • التعبئة: القيمة المراد ملؤها إذا كان العرض أكبر من -1. إذا كانت فارغة، تُملأ بمسافات. قيمة نموذجية أخرى هي '0'. لا يمكن أن يتجاوز طول السلسلة حرفًا واحدًا.

المرتجعات:

  • Output : موتر الناتج.

البناة والمدمرون

AsString (const :: tensorflow::Scope & scope, :: tensorflow::Input input)
AsString (const :: tensorflow::Scope & scope, :: tensorflow::Input input, const AsString::Attrs & attrs)

السمات العامة

operation
output

الوظائف العامة

node () const
::tensorflow::Node *
operator::tensorflow::Input () const
operator::tensorflow::Output () const

الدوال الثابتة العامة

Fill (StringPiece x)
Precision (int64 x)
Scientific (bool x)
Shortest (bool x)
Width (int64 x)

الهياكل

tensorflow:: ops:: AsString:: Attrs

مُعدِّلات السمات الاختيارية لـ AsString .

السمات العامة

عملية

Operation operation

المخرجات

::tensorflow::Output output

الوظائف العامة

AsString

 AsString(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input input
)

AsString

 AsString(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input input,
  const AsString::Attrs & attrs
)

العقدة

::tensorflow::Node * node() const 

operator::tensorflow::Input

 operator::tensorflow::Input() const 

operator::tensorflow::Output

 operator::tensorflow::Output() const 

الدوال الثابتة العامة

يملأ

Attrs Fill(
  StringPiece x
)

دقة

Attrs Precision(
  int64 x
)

علمي

Attrs Scientific(
  bool x
)

أقصر

Attrs Shortest(
  bool x
)

عرض

Attrs Width(
  int64 x
)