tensorflow :: অপস:: AsString

#include <string_ops.h>

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

সারসংক্ষেপ

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

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

উদাহরণ:

tf.strings.as_string([3, 2]) tf.strings.as_string([3.1415926, 2.71828], precision=2).numpy() অ্যারে([b'3.14', b'2.72'], dtype=object)

যুক্তি:

ঐচ্ছিক বৈশিষ্ট্য (দেখুন Attrs ):

  • নির্ভুলতা: ফ্লোটিং পয়েন্ট সংখ্যার জন্য ব্যবহার করার জন্য পোস্ট-ডেসিমেল নির্ভুলতা। শুধুমাত্র যদি নির্ভুলতা > -1 ব্যবহার করা হয়।
  • বৈজ্ঞানিক: ভাসমান পয়েন্ট সংখ্যার জন্য বৈজ্ঞানিক স্বরলিপি ব্যবহার করুন।
  • সংক্ষিপ্ততম: ভাসমান বিন্দু সংখ্যার জন্য সংক্ষিপ্ততম উপস্থাপনা (বৈজ্ঞানিক বা মানক) ব্যবহার করুন।
  • প্রস্থ: এই প্রস্থে প্যাড প্রাক-দশমিক সংখ্যা। ফ্লোটিং পয়েন্ট এবং পূর্ণসংখ্যা উভয় ক্ষেত্রেই প্রযোজ্য। শুধুমাত্র যদি প্রস্থ > -1 ব্যবহার করা হয়।
  • পূরণ: প্যাডের মান যদি প্রস্থ > -1। খালি হলে, স্পেস সহ প্যাড। আরেকটি সাধারণ মান হল '0'। স্ট্রিং 1 অক্ষরের বেশি হতে পারে না।

রিটার্ন:

  • 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
)