จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
เทนเซอร์โฟลว์:: ปฏิบัติการ:: ตัวยึดตำแหน่งด้วยค่าเริ่มต้น
#include <array_ops.h>
ตัวยึดตำแหน่งที่ส่งผ่าน input
เมื่อไม่ได้ป้อนเอาต์พุต
สรุป
ข้อโต้แย้ง:
- ขอบเขต: วัตถุ ขอบเขต
- อินพุต: ค่าเริ่มต้นที่จะสร้างเมื่อไม่ได้ป้อน
output
- รูปร่าง: รูปร่าง (อาจเป็นบางส่วน) ของเทนเซอร์
ผลตอบแทน:
-
Output
: เทนเซอร์ตัวยึดตำแหน่งที่ใช้ค่าเริ่มต้นเป็น input
หากไม่ได้ป้อน
คุณลักษณะสาธารณะ
งานสาธารณะ
โหนด
::tensorflow::Node * node() const
operator::tensorflow::Input() const
ตัวดำเนินการ::tensorflow::เอาต์พุต
operator::tensorflow::Output() const
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-07-25 UTC
[null,null,["อัปเดตล่าสุด 2025-07-25 UTC"],[],[],null,["# tensorflow::ops::PlaceholderWithDefault Class Reference\n\ntensorflow::ops::PlaceholderWithDefault\n=======================================\n\n`#include \u003carray_ops.h\u003e`\n\nA placeholder op that passes through `input` when its output is not fed.\n\nSummary\n-------\n\nArguments:\n\n- scope: A [Scope](/versions/r1.15/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope) object\n- input: The default value to produce when `output` is not fed.\n- shape: The (possibly partial) shape of the tensor.\n\n\u003cbr /\u003e\n\nReturns:\n\n- [Output](/versions/r1.15/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output): A placeholder tensor that defaults to `input` if it is not fed.\n\n\u003cbr /\u003e\n\n| ### Constructors and Destructors ||\n|---|---|\n| [PlaceholderWithDefault](#classtensorflow_1_1ops_1_1_placeholder_with_default_1ae4d4b5f83270ca5703ffe69f02a15eb7)`(const ::`[tensorflow::Scope](/versions/r1.15/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope)` & scope, ::`[tensorflow::Input](/versions/r1.15/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` input, PartialTensorShape shape)` ||\n\n| ### Public attributes ||\n|------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------|\n| [operation](#classtensorflow_1_1ops_1_1_placeholder_with_default_1aad20a686bc26b793fb68b299dcf7b9fd) | [Operation](/versions/r1.15/api_docs/cc/class/tensorflow/operation#classtensorflow_1_1_operation) |\n| [output](#classtensorflow_1_1ops_1_1_placeholder_with_default_1a88a9e63e6171a4176dfb91f2fc3c05fd) | `::`[tensorflow::Output](/versions/r1.15/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output) |\n\n| ### Public functions ||\n|------------------------------------------------------------------------------------------------------------------------------------|------------------------|\n| [node](#classtensorflow_1_1ops_1_1_placeholder_with_default_1a1a5464a28eaeb73dac97051e6864fbb2)`() const ` | `::tensorflow::Node *` |\n| [operator::tensorflow::Input](#classtensorflow_1_1ops_1_1_placeholder_with_default_1ad83a6453e256fd62263007bbeadc45a3)`() const ` | ` ` ` ` |\n| [operator::tensorflow::Output](#classtensorflow_1_1ops_1_1_placeholder_with_default_1a8212ef889952d76a1a68cc14c6ff2107)`() const ` | ` ` ` ` |\n\nPublic attributes\n-----------------\n\n### operation\n\n```text\nOperation operation\n``` \n\n### output\n\n```text\n::tensorflow::Output output\n``` \n\nPublic functions\n----------------\n\n### PlaceholderWithDefault\n\n```gdscript\n PlaceholderWithDefault(\n const ::tensorflow::Scope & scope,\n ::tensorflow::Input input,\n PartialTensorShape shape\n)\n``` \n\n### node\n\n```gdscript\n::tensorflow::Node * node() const \n``` \n\n### operator::tensorflow::Input\n\n```gdscript\n operator::tensorflow::Input() const \n``` \n\n### operator::tensorflow::Output\n\n```gdscript\n operator::tensorflow::Output() const \n```"]]