텐서플로우::ops::문자열길이

#include <string_ops.h>

input 문자열의 길이.

요약

입력 텐서에 주어진 각 문자열의 길이를 계산합니다.

논거:

  • 범위: Scope 객체
  • 입력: 길이를 계산할 문자열.

선택적 속성( Attrs 참조):

  • unit: 문자열 길이를 계산하는 데 사용되는 단위입니다. "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
)