نشكرك على متابعة Google I / O. عرض جميع الجلسات عند الطلب مشاهدة عند الطلب

تينسورفلو :: العمليات :: تنسيق StringFormat

#include <string_ops.h>

ينسق قالب سلسلة باستخدام قائمة الموترات.

ملخص

ينسق قالب سلسلة باستخدام قائمة الموترات ، وطباعة ملخصات موتر جميلة.

الحجج:

  • النطاق: كائن النطاق
  • المدخلات: قائمة الموترات المطلوب تنسيقها في سلسلة العنصر النائب.

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

  • template_: سلسلة ، القالب المطلوب تنسيق ملخصات الموتر فيه.
  • placeholder: سلسلة ، في كل عنصر نائب في القالب سيتم إدراج ملخص موتر لاحق.
  • تلخيص: عند تنسيق ملخصات الموتر ، قم بطباعة أول وآخر تلخيص لإدخالات كل بُعد موتر.

عائدات:

  • Output : = السلسلة العددية الناتجة.

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

StringFormat (const :: tensorflow::Scope & scope, :: tensorflow::InputList inputs)
StringFormat (const :: tensorflow::Scope & scope, :: tensorflow::InputList inputs, const StringFormat::Attrs & attrs)

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

operation
output

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

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

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

Placeholder (StringPiece x)
Summarize (int64 x)
Template (StringPiece x)

الهياكل

tensorflow :: ops :: StringFormat :: Attrs

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

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

عملية

Operation operation

انتاج

::tensorflow::Output output

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

تنسيق StringFormat

 StringFormat(
  const ::tensorflow::Scope & scope,
  ::tensorflow::InputList inputs
)

تنسيق StringFormat

 StringFormat(
  const ::tensorflow::Scope & scope,
  ::tensorflow::InputList inputs,
  const StringFormat::Attrs & attrs
)

العقدة

::tensorflow::Node * node() const 

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

 operator::tensorflow::Input() const 

المشغل :: Tensorflow :: Output

 operator::tensorflow::Output() const 

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

عنصر نائب

Attrs Placeholder(
  StringPiece x
)

لخص

Attrs Summarize(
  int64 x
)

قالب

Attrs Template(
  StringPiece x
)