จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
เทนเซอร์โฟลว์:: ปฏิบัติการ:: ถอดรหัสCSV:: คุณสมบัติ
#include <parsing_ops.h>
ตัวตั้งค่าแอตทริบิวต์เพิ่มเติมสำหรับ DecodeCSV
สรุป
งานสาธารณะ |
---|
FieldDelim (StringPiece x) | ตัวคั่นถ่านเพื่อแยกฟิลด์ในบันทึก |
NaValue (StringPiece x) | สตริงเพิ่มเติมที่จะรับรู้เป็น NA/NaN |
SelectCols (const gtl::ArraySlice< int > & x) | ค่าเริ่มต้นเป็น [] |
UseQuoteDelim (bool x) | หากเป็นเท็จ ให้ถือว่าเครื่องหมายคำพูดคู่เป็นอักขระปกติภายในช่องสตริง (โดยไม่สนใจ RFC 4180, ส่วนที่ 2, สัญลักษณ์แสดงหัวข้อย่อย 5) |
คุณลักษณะสาธารณะ
field_delim_
StringPiece tensorflow::ops::DecodeCSV::Attrs::field_delim_ = ","
นา_ค่า_
StringPiece tensorflow::ops::DecodeCSV::Attrs::na_value_ = ""
เลือก_cols_
gtl::ArraySlice< int > tensorflow::ops::DecodeCSV::Attrs::select_cols_ = {}
use_quote_delim_
bool tensorflow::ops::DecodeCSV::Attrs::use_quote_delim_ = true
งานสาธารณะ
ฟิลด์เดลิม
TF_MUST_USE_RESULT Attrs tensorflow::ops::DecodeCSV::Attrs::FieldDelim(
StringPiece x
)
ตัวคั่นถ่านเพื่อแยกฟิลด์ในบันทึก
ค่าเริ่มต้นเป็น ","
นาแวลู
TF_MUST_USE_RESULT Attrs tensorflow::ops::DecodeCSV::Attrs::NaValue(
StringPiece x
)
สตริงเพิ่มเติมที่จะรับรู้เป็น NA/NaN
ค่าเริ่มต้นเป็น ""
เลือกคอลัมน์
TF_MUST_USE_RESULT Attrs tensorflow::ops::DecodeCSV::Attrs::SelectCols(
const gtl::ArraySlice< int > & x
)
ใช้QuoteDelim
TF_MUST_USE_RESULT Attrs tensorflow::ops::DecodeCSV::Attrs::UseQuoteDelim(
bool x
)
หากเป็นเท็จ ให้ถือว่าเครื่องหมายคำพูดคู่เป็นอักขระปกติภายในช่องสตริง (โดยไม่สนใจ RFC 4180, ส่วนที่ 2, สัญลักษณ์แสดงหัวข้อย่อย 5)
ค่าเริ่มต้นเป็นจริง
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-07-25 UTC
[null,null,["อัปเดตล่าสุด 2025-07-25 UTC"],[],[],null,["# tensorflow::ops::DecodeCSV::Attrs Struct Reference\n\ntensorflow::ops::DecodeCSV::Attrs\n=================================\n\n`#include \u003cparsing_ops.h\u003e`\n\nOptional attribute setters for [DecodeCSV](/versions/r2.1/api_docs/cc/class/tensorflow/ops/decode-c-s-v#classtensorflow_1_1ops_1_1_decode_c_s_v).\n\nSummary\n-------\n\n| ### Public attributes ||\n|---------------------------------------------------------------------------------------------------------------------|--------------------------|\n| [field_delim_](#structtensorflow_1_1ops_1_1_decode_c_s_v_1_1_attrs_1a49cd1cec281eb0fac9c7252a186b8d7a)` = \",\"` | `StringPiece` |\n| [na_value_](#structtensorflow_1_1ops_1_1_decode_c_s_v_1_1_attrs_1a9e014d2b608b63a21e70eac80e7af794)` = \"\"` | `StringPiece` |\n| [select_cols_](#structtensorflow_1_1ops_1_1_decode_c_s_v_1_1_attrs_1a26b3966da17b683a55de1150ef9013ae)` = {}` | `gtl::ArraySlice\u003c int \u003e` |\n| [use_quote_delim_](#structtensorflow_1_1ops_1_1_decode_c_s_v_1_1_attrs_1ad65426c0581e0d6e4b564113365da483)` = true` | `bool` |\n\n| ### Public functions ||\n|------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [FieldDelim](#structtensorflow_1_1ops_1_1_decode_c_s_v_1_1_attrs_1a14f27f9627ddcf636907b8a7c4d7246f)`(StringPiece x)` | `TF_MUST_USE_RESULT `[Attrs](/versions/r2.1/api_docs/cc/struct/tensorflow/ops/decode-c-s-v/attrs#structtensorflow_1_1ops_1_1_decode_c_s_v_1_1_attrs) char delimiter to separate fields in a record. |\n| [NaValue](#structtensorflow_1_1ops_1_1_decode_c_s_v_1_1_attrs_1adbb0bb6b00e1eafd1e3ff12a74b965db)`(StringPiece x)` | `TF_MUST_USE_RESULT `[Attrs](/versions/r2.1/api_docs/cc/struct/tensorflow/ops/decode-c-s-v/attrs#structtensorflow_1_1ops_1_1_decode_c_s_v_1_1_attrs) Additional string to recognize as NA/NaN. |\n| [SelectCols](#structtensorflow_1_1ops_1_1_decode_c_s_v_1_1_attrs_1aedde6357cd08b0eb7ef30b85022d0098)`(const gtl::ArraySlice\u003c int \u003e & x)` | `TF_MUST_USE_RESULT `[Attrs](/versions/r2.1/api_docs/cc/struct/tensorflow/ops/decode-c-s-v/attrs#structtensorflow_1_1ops_1_1_decode_c_s_v_1_1_attrs) Defaults to \\[\\]. |\n| [UseQuoteDelim](#structtensorflow_1_1ops_1_1_decode_c_s_v_1_1_attrs_1aecfb4b0c7731940997bf4b135dbe2b85)`(bool x)` | `TF_MUST_USE_RESULT `[Attrs](/versions/r2.1/api_docs/cc/struct/tensorflow/ops/decode-c-s-v/attrs#structtensorflow_1_1ops_1_1_decode_c_s_v_1_1_attrs) If false, treats double quotation marks as regular characters inside of the string fields (ignoring RFC 4180, Section 2, Bullet 5). |\n\nPublic attributes\n-----------------\n\n### field_delim_\n\n```scdoc\nStringPiece tensorflow::ops::DecodeCSV::Attrs::field_delim_ = \",\"\n``` \n\n### na_value_\n\n```scdoc\nStringPiece tensorflow::ops::DecodeCSV::Attrs::na_value_ = \"\"\n``` \n\n### select_cols_\n\n```scdoc\ngtl::ArraySlice\u003c int \u003e tensorflow::ops::DecodeCSV::Attrs::select_cols_ = {}\n``` \n\n### use_quote_delim_\n\n```scdoc\nbool tensorflow::ops::DecodeCSV::Attrs::use_quote_delim_ = true\n``` \n\nPublic functions\n----------------\n\n### FieldDelim\n\n```scdoc\nTF_MUST_USE_RESULT Attrs tensorflow::ops::DecodeCSV::Attrs::FieldDelim(\n StringPiece x\n)\n``` \nchar delimiter to separate fields in a record.\n\nDefaults to \",\" \n\n### NaValue\n\n```scdoc\nTF_MUST_USE_RESULT Attrs tensorflow::ops::DecodeCSV::Attrs::NaValue(\n StringPiece x\n)\n``` \nAdditional string to recognize as NA/NaN.\n\nDefaults to \"\" \n\n### SelectCols\n\n```gdscript\nTF_MUST_USE_RESULT Attrs tensorflow::ops::DecodeCSV::Attrs::SelectCols(\n const gtl::ArraySlice\u003c int \u003e & x\n)\n``` \nDefaults to \\[\\]. \n\n### UseQuoteDelim\n\n```scdoc\nTF_MUST_USE_RESULT Attrs tensorflow::ops::DecodeCSV::Attrs::UseQuoteDelim(\n bool x\n)\n``` \nIf false, treats double quotation marks as regular characters inside of the string fields (ignoring RFC 4180, Section 2, Bullet 5).\n\nDefaults to true"]]