tensorflow::ops::StringFormat

#include <string_ops.h>

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

ملخص

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

الحجج:

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

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

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

المرتجعات:

  • 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(
  const ::tensorflow::Scope & scope,
  ::tensorflow::InputList inputs
)

تنسيق السلسلة

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

العقدة

::tensorflow::Node * node() const 

operator::tensorflow::Input

 operator::tensorflow::Input() const 

operator::tensorflow::Output

 operator::tensorflow::Output() const 

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

عنصر نائب

Attrs Placeholder(
  StringPiece x
)

لخص

Attrs Summarize(
  int64 x
)

نموذج

Attrs Template(
  StringPiece x
)