텐서플로우:: 작전:: 문자열 길이

#include <string_ops.h>

input 의 문자열 길이입니다.

요약

입력 텐서에 제공된 각 문자열의 길이를 계산합니다.

인수:

  • 범위: 범위 개체
  • 입력: 길이를 계산할 문자열입니다.

선택적 속성( Attrs 참조):

  • 단위: 문자열 길이를 계산하기 위해 계산되는 단위입니다. "BYTE" (각 문자열의 바이트 수) 또는 "UTF8_CHAR" (각 문자열의 UTF-8 인코딩 유니코드 코드 포인트 수) 중 하나입니다. 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)

구조체

텐서플로우:: 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() const 

연산자::텐서플로우::출력

 operator::tensorflow::Output() const 

공개 정적 함수

단위

Attrs Unit(
  StringPiece x
)