컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
텐서플로우:: 작전:: 문자열길이:: 속성
#include <string_ops.h>
StringLength 에 대한 선택적 속성 설정자입니다.
요약
공개 속성 |
---|
unit_ = "BYTE" | StringPiece |
공공 기능 |
---|
Unit (StringPiece x) | 문자열 길이를 계산하기 위해 계산되는 단위입니다. |
공개 속성
단위_
StringPiece tensorflow::ops::StringLength::Attrs::unit_ = "BYTE"
공공 기능
단위
TF_MUST_USE_RESULT Attrs tensorflow::ops::StringLength::Attrs::Unit(
StringPiece x
)
문자열 길이를 계산하기 위해 계산되는 단위입니다.
"BYTE"
(각 문자열의 바이트 수) 또는 "UTF8_CHAR"
(각 문자열의 UTF-8 인코딩 유니코드 코드 포인트 수) 중 하나입니다. unit=UTF8_CHAR
이고 input
문자열에 구조적으로 유효한 UTF-8이 포함되어 있지 않으면 결과가 정의되지 않습니다.
기본값은 "BYTE"입니다.
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2025-07-28(UTC)
[null,null,["최종 업데이트: 2025-07-28(UTC)"],[],[],null,["# tensorflow::ops::StringLength::Attrs Struct Reference\n\ntensorflow::ops::StringLength::Attrs\n====================================\n\n`#include \u003cstring_ops.h\u003e`\n\nOptional attribute setters for [StringLength](/versions/r1.15/api_docs/cc/class/tensorflow/ops/string-length#classtensorflow_1_1ops_1_1_string_length).\n\nSummary\n-------\n\n| ### Public attributes ||\n|-------------------------------------------------------------------------------------------------------------|---------------|\n| [unit_](#structtensorflow_1_1ops_1_1_string_length_1_1_attrs_1a20ddf74f682ff45eee049cef9c6ebab1)` = \"BYTE\"` | `StringPiece` |\n\n| ### Public functions ||\n|------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [Unit](#structtensorflow_1_1ops_1_1_string_length_1_1_attrs_1ac8d16dcfea721edfcf1fe9ecd4db17d9)`(StringPiece x)` | `TF_MUST_USE_RESULT `[Attrs](/versions/r1.15/api_docs/cc/struct/tensorflow/ops/string-length/attrs#structtensorflow_1_1ops_1_1_string_length_1_1_attrs) The unit that is counted to compute string length. |\n\nPublic attributes\n-----------------\n\n### unit_\n\n```scdoc\nStringPiece tensorflow::ops::StringLength::Attrs::unit_ = \"BYTE\"\n``` \n\nPublic functions\n----------------\n\n### Unit\n\n```scdoc\nTF_MUST_USE_RESULT Attrs tensorflow::ops::StringLength::Attrs::Unit(\n StringPiece x\n)\n``` \nThe unit that is counted to compute string length.\n\nOne of: `\"BYTE\"` (for the number of bytes in each string) or `\"UTF8_CHAR\"` (for the number of UTF-8 encoded Unicode code points in each string). Results are undefined if `unit=UTF8_CHAR` and the `input` strings do not contain structurally valid UTF-8.\n\nDefaults to \"BYTE\""]]