تدفق التوتر:: العمليات:: طول سلسلة

#include <string_ops.h>

أطوال سلسلة input .

ملخص

يحسب طول كل سلسلة معينة في موتر الإدخال.

الحجج:

  • النطاق: كائن النطاق
  • الإدخال: السلسلة التي سيتم حساب طولها.

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

  • الوحدة: الوحدة التي يتم حسابها لحساب طول السلسلة. واحد من: "BYTE" (لعدد البايتات في كل سلسلة) أو "UTF8_CHAR" (لعدد نقاط كود Unicode المشفرة UTF-8 في كل سلسلة). تكون النتائج غير محددة إذا كانت unit=UTF8_CHAR وكانت سلاسل input لا تحتوي على UTF-8 صالح من الناحية الهيكلية.

عائدات:

  • Output : موتر عدد صحيح له نفس شكل input . يحتوي الإخراج على أطوال السلسلة الحكيمة input .

البنائين والمدمرين

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

الصفات العامة

operation
output

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

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

وظائف ثابتة العامة

Unit (StringPiece x)

الهياكل

Tensorflow:: ops:: StringLength:: Attrs

محددات السمات الاختيارية لـ StringLength .

الصفات العامة

عملية

Operation operation

انتاج

::tensorflow::Output output

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

طول سلسلة

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

طول سلسلة

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

العقدة

::tensorflow::Node * node() const 

المشغل::tensorflow::الإدخال

 operator::tensorflow::Input() const 

المشغل::tensorflow::الإخراج

 operator::tensorflow::Output() const 

وظائف ثابتة العامة

وحدة

Attrs Unit(
  StringPiece x
)