تدفق التوتر:: العمليات:: StringToNumber
#include <parsing_ops.h>
يحول كل سلسلة في Tensor الإدخال إلى النوع الرقمي المحدد.
ملخص
(لاحظ أن تجاوز سعة int32 يؤدي إلى حدوث خطأ بينما يؤدي تجاوز سعة التعويم إلى قيمة مستديرة.)
الحجج:
- النطاق: كائن النطاق
السمات الاختيارية (انظر 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) |
الوظائف العامة | |
---|---|
node () const | ::tensorflow::Node * |
operator::tensorflow::Input () const | |
operator::tensorflow::Output () const |
الهياكل | |
---|---|
Tensorflow:: ops:: StringToNumber:: Attrs | محددات السمات الاختيارية لـ StringToNumber . |
الصفات العامة
عملية
Operation operation
الإخراج
::tensorflow::Output output
الوظائف العامة
StringToNumber
StringToNumber( const ::tensorflow::Scope & scope, ::tensorflow::Input string_tensor )
StringToNumber
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 )