tensorflow:: ops:: StringLength

#include <string_ops.h>

input文字列の長さ。

まとめ

入力テンソルに含まれる各文字列の長さを計算します。

議論:

  • スコープ:スコープオブジェクト
  • 入力: 長さを計算する対象となる文字列。

オプション属性( Attrs参照):

  • unit: 文字列の長さを計算する際にカウントする単位。次のいずれかを指定します"BYTE" (各文字列のバイト数)または"UTF8_CHAR" (各文字列のUTF-8エンコードされたUnicodeコードポイント数)。unit unit=UTF8_CHARで、 input文字列に構造的に有効なUTF-8が含まれていない場合、結果は未定義です。

返品:

  • Output : inputと同じ形状の整数テンソル。出力には、 inputの要素ごとの文字列の長さが含まれます。

コンストラクターとデストラクタ

StringLength (const :: tensorflow::Scope & scope, :: tensorflow::Input input)
StringLength (const :: tensorflow::Scope & scope, :: tensorflow::Input input, const StringLength::Attrs & attrs)

公開属性

operation
output

公的機能

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

パブリック静的関数

Unit (StringPiece x)

構造

tensorflow:: ops:: StringLength:: Attrs

StringLengthのオプション属性セッター。

公開属性

手術

Operation operation

出力

::tensorflow::Output output

公的機能

文字列の長さ

 StringLength(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input input
)

文字列の長さ

 StringLength(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input input,
  const StringLength::Attrs & attrs
)

ノード

::tensorflow::Node * node() const 

operator::tensorflow::Input

 operator::tensorflow::Input() const 

operator::tensorflow::Output

 operator::tensorflow::Output() const 

パブリック静的関数

ユニット

Attrs Unit(
  StringPiece x
)