テンソルフロー::作戦::文字列から数値へ
#include <parsing_ops.h>入力Tensorの各文字列を指定された数値型に変換します。
まとめ
(int32 オーバーフローではエラーが発生し、float オーバーフローでは丸められた値が発生することに注意してください。)
例:
文字列 = ["5.0", "3.0", "7.0"] tf.strings.to_number(strings)
引数:
- スコープ:スコープオブジェクト
オプションの属性 ( 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 )