tensorflow::ops::StringToNumber

#include <parsing_ops.h>

هر رشته در Tensor ورودی را به نوع عددی مشخص شده تبدیل می‌کند.

خلاصه

(توجه داشته باشید که سرریز int32 منجر به خطا می‌شود در حالی که سرریز float منجر به گرد شدن مقدار می‌شود.)

مثال:

رشته‌ها = ["5.0"، "3.0"، "7.0"] tf.strings.to_number(رشته‌ها)

استدلال‌ها:

ویژگی‌های اختیاری (به Attrs مراجعه کنید):

  • out_type: نوع عددی که هر رشته در string_tensor به عنوان آن تفسیر می‌شود.

بازده:

سازنده‌ها و مخرب‌ها

StringToNumber (const :: tensorflow::Scope & scope, :: tensorflow::Input string_tensor)
StringToNumber (const :: tensorflow::Scope & scope, :: tensorflow::Input string_tensor, const StringToNumber::Attrs & attrs)

ویژگی‌های عمومی

operation
output

کارکردهای عمومی

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

توابع استاتیک عمومی

OutType (DataType x)

ساختارها

tensorflow::ops::StringToNumber::Attrs

تنظیم‌کننده‌های ویژگی اختیاری برای StringToNumber .

ویژگی‌های عمومی

عملیات

Operation operation

خروجی

::tensorflow::Output output

کارکردهای عمومی

رشته به عدد

 StringToNumber(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input string_tensor
)

رشته به عدد

 StringToNumber(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input string_tensor,
  const StringToNumber::Attrs & attrs
)

گره

::tensorflow::Node * node() const 

عملگر::tensorflow::ورودی

 operator::tensorflow::Input() const 

عملگر::tensorflow::خروجی

 operator::tensorflow::Output() const 

توابع استاتیک عمومی

نوع خروجی

Attrs OutType(
  DataType x
)