tensorflow:: ops:: AsString

#include <string_ops.h>

প্রদত্ত টেনসরের প্রতিটি এন্ট্রিকে স্ট্রিং-এ রূপান্তর করে।

সারসংক্ষেপ

অনেক ধরনের সংখ্যাসূচক এবং বুলিয়ান সমর্থন করে।

ইউনিকোডের জন্য, [ https://www.tensorflow.org/tutorials/representation/unicode ](ইউনিকোড টেক্সট নিয়ে কাজ করা) টিউটোরিয়ালটি দেখুন।

যুক্তি:

ঐচ্ছিক অ্যাট্রিবিউটসমূহ (দেখুন Attrs ):

  • প্রিসিশন: ফ্লোটিং পয়েন্ট সংখ্যার জন্য দশমিকের পরের প্রিসিশন। শুধুমাত্র তখনই ব্যবহৃত হয় যখন প্রিসিশন > -1 হয়।
  • বৈজ্ঞানিক: ফ্লোটিং পয়েন্ট সংখ্যার জন্য বৈজ্ঞানিক সংকেত ব্যবহার করুন।
  • সংক্ষিপ্ততম: ফ্লোটিং পয়েন্ট সংখ্যার জন্য সংক্ষিপ্ততম উপস্থাপনা (বৈজ্ঞানিক বা সাধারণ) ব্যবহার করুন।
  • প্রস্থ: দশমিকের আগের সংখ্যাগুলোকে এই প্রস্থ পর্যন্ত প্যাড করুন । এটি ফ্লোটিং পয়েন্ট এবং পূর্ণসংখ্যা উভয়ের ক্ষেত্রেই প্রযোজ্য। শুধুমাত্র তখনই ব্যবহৃত হয় যখন প্রস্থ > -1।
  • fill: width > -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() const 

অপারেটর::টেনসরফ্লো::আউটপুট

 operator::tensorflow::Output() const 

পাবলিক স্ট্যাটিক ফাংশন

পূরণ করুন

Attrs Fill(
  StringPiece x
)

নির্ভুলতা

Attrs Precision(
  int64 x
)

বৈজ্ঞানিক

Attrs Scientific(
  bool x
)

সবচেয়ে ছোট

Attrs Shortest(
  bool x
)

প্রস্থ

Attrs Width(
  int64 x
)