Google I/O에 참여해 주셔서 감사합니다. 주문형 모든 세션 보기 주문형 시청

tensorflow :: ops :: StringLength

#include <string_ops.h>

input 문자열 길이.

요약

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

인수 :

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

선택적 속성 ( 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)

구조체

tensorflow :: ops :: StringLength :: Attrs

StringLength에 대한 선택적 속성 설정자.

공용 속성

조작

Operation operation

산출

::tensorflow::Output output

공공 기능

StringLength

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

StringLength

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

마디

::tensorflow::Node * node() const 

연산자 :: tensorflow :: 입력

 operator::tensorflow::Input() const 

연산자 :: tensorflow :: 출력

 operator::tensorflow::Output() const 

공개 정적 함수

단위

Attrs Unit(
  StringPiece x
)