จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
เทนเซอร์โฟลว์:: ปฏิบัติการ:: ยกเลิก:: คุณสมบัติ
#include <control_flow_ops.h>
ตัวตั้งค่าแอ็ตทริบิวต์ทางเลือกสำหรับ Abort
สรุป
งานสาธารณะ |
---|
ErrorMsg (StringPiece x) | สตริงที่เป็นข้อความที่เกี่ยวข้องกับข้อยกเว้น |
ExitWithoutError (bool x) | ค่าเริ่มต้นเป็นเท็จ |
คุณลักษณะสาธารณะ
ข้อผิดพลาด_msg_
StringPiece tensorflow::ops::Abort::Attrs::error_msg_ = ""
exit_without_error_
bool tensorflow::ops::Abort::Attrs::exit_without_error_ = false
งานสาธารณะ
ข้อผิดพลาดข่าวสาร
TF_MUST_USE_RESULT Attrs tensorflow::ops::Abort::Attrs::ErrorMsg(
StringPiece x
)
สตริงที่เป็นข้อความที่เกี่ยวข้องกับข้อยกเว้น
ค่าเริ่มต้นเป็น ""
ออกโดยไม่มีข้อผิดพลาด
TF_MUST_USE_RESULT Attrs tensorflow::ops::Abort::Attrs::ExitWithoutError(
bool x
)
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-07-26 UTC
[null,null,["อัปเดตล่าสุด 2025-07-26 UTC"],[],[],null,["# tensorflow::ops::Abort::Attrs Struct Reference\n\ntensorflow::ops::Abort::Attrs\n=============================\n\n`#include \u003ccontrol_flow_ops.h\u003e`\n\nOptional attribute setters for [Abort](/versions/r1.15/api_docs/cc/class/tensorflow/ops/abort#classtensorflow_1_1ops_1_1_abort).\n\nSummary\n-------\n\n| ### Public attributes ||\n|------------------------------------------------------------------------------------------------------------------|---------------|\n| [error_msg_](#structtensorflow_1_1ops_1_1_abort_1_1_attrs_1a8e6778ce0cc69ac4c93f8487b050178b)` = \"\"` | `StringPiece` |\n| [exit_without_error_](#structtensorflow_1_1ops_1_1_abort_1_1_attrs_1af8b1af887b1e0ee0a1700b63a6bbb0ed)` = false` | `bool` |\n\n| ### Public functions ||\n|---------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [ErrorMsg](#structtensorflow_1_1ops_1_1_abort_1_1_attrs_1a70ea437886112efadb8d0bc28610166b)`(StringPiece x)` | `TF_MUST_USE_RESULT `[Attrs](/versions/r1.15/api_docs/cc/struct/tensorflow/ops/abort/attrs#structtensorflow_1_1ops_1_1_abort_1_1_attrs) A string which is the message associated with the exception. |\n| [ExitWithoutError](#structtensorflow_1_1ops_1_1_abort_1_1_attrs_1abf792ac0d80e8bbe8cac55b0b54cdf9a)`(bool x)` | `TF_MUST_USE_RESULT `[Attrs](/versions/r1.15/api_docs/cc/struct/tensorflow/ops/abort/attrs#structtensorflow_1_1ops_1_1_abort_1_1_attrs) Defaults to false. |\n\nPublic attributes\n-----------------\n\n### error_msg_\n\n```scdoc\nStringPiece tensorflow::ops::Abort::Attrs::error_msg_ = \"\"\n``` \n\n### exit_without_error_\n\n```scdoc\nbool tensorflow::ops::Abort::Attrs::exit_without_error_ = false\n``` \n\nPublic functions\n----------------\n\n### ErrorMsg\n\n```scdoc\nTF_MUST_USE_RESULT Attrs tensorflow::ops::Abort::Attrs::ErrorMsg(\n StringPiece x\n)\n``` \nA string which is the message associated with the exception.\n\nDefaults to \"\" \n\n### ExitWithoutError\n\n```scdoc\nTF_MUST_USE_RESULT Attrs tensorflow::ops::Abort::Attrs::ExitWithoutError(\n bool x\n)\n``` \nDefaults to false."]]