จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
เทนเซอร์โฟลว์:: ปฏิบัติการ:: ย่อย:: คุณสมบัติ
#include <string_ops.h>
ตัวตั้งค่าแอ็ตทริบิวต์ทางเลือกสำหรับ Substr
สรุป
คุณลักษณะสาธารณะ |
---|
unit_ = "BYTE" | StringPiece |
งานสาธารณะ |
---|
Unit (StringPiece x) | หน่วยที่ใช้สร้างสตริงย่อย |
คุณลักษณะสาธารณะ
หน่วย_
StringPiece tensorflow::ops::Substr::Attrs::unit_ = "BYTE"
งานสาธารณะ
หน่วย
TF_MUST_USE_RESULT Attrs tensorflow::ops::Substr::Attrs::Unit(
StringPiece x
)
หน่วยที่ใช้สร้างสตริงย่อย
หนึ่งใน: "BYTE"
(สำหรับการกำหนดตำแหน่งและความยาวด้วยไบต์) หรือ "UTF8_CHAR"
(สำหรับจุดโค้ด Unicode ที่เข้ารหัส UTF-8) ค่าเริ่มต้นคือ "BYTE"
ผลลัพธ์ไม่ได้ถูกกำหนดไว้หาก unit=UTF8_CHAR
และสตริง input
ไม่มี UTF-8 ที่ถูกต้องเชิงโครงสร้าง
ค่าเริ่มต้นเป็น "BYTE"
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-07-25 UTC
[null,null,["อัปเดตล่าสุด 2025-07-25 UTC"],[],[],null,["# tensorflow::ops::Substr::Attrs Struct Reference\n\ntensorflow::ops::Substr::Attrs\n==============================\n\n`#include \u003cstring_ops.h\u003e`\n\nOptional attribute setters for [Substr](/versions/r2.1/api_docs/cc/class/tensorflow/ops/substr#classtensorflow_1_1ops_1_1_substr).\n\nSummary\n-------\n\n| ### Public attributes ||\n|------------------------------------------------------------------------------------------------------|---------------|\n| [unit_](#structtensorflow_1_1ops_1_1_substr_1_1_attrs_1a7c385269db54d4c3e74fb0cd18cd739e)` = \"BYTE\"` | `StringPiece` |\n\n| ### Public functions ||\n|-----------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [Unit](#structtensorflow_1_1ops_1_1_substr_1_1_attrs_1af6db7bd9466518c3de8793eeb8372886)`(StringPiece x)` | `TF_MUST_USE_RESULT `[Attrs](/versions/r2.1/api_docs/cc/struct/tensorflow/ops/substr/attrs#structtensorflow_1_1ops_1_1_substr_1_1_attrs) The unit that is used to create the substring. |\n\nPublic attributes\n-----------------\n\n### unit_\n\n```scdoc\nStringPiece tensorflow::ops::Substr::Attrs::unit_ = \"BYTE\"\n``` \n\nPublic functions\n----------------\n\n### Unit\n\n```scdoc\nTF_MUST_USE_RESULT Attrs tensorflow::ops::Substr::Attrs::Unit(\n StringPiece x\n)\n``` \nThe unit that is used to create the substring.\n\nOne of: `\"BYTE\"` (for defining position and length by bytes) or `\"UTF8_CHAR\"` (for the UTF-8 encoded Unicode code points). The default is `\"BYTE\"`. Results are undefined if `unit=UTF8_CHAR` and the `input` strings do not contain structurally valid UTF-8.\n\nDefaults to \"BYTE\""]]