جریان تنسور:: عملیات:: PlaceholderWithDefault
#include <array_ops.h>
یک عملیات نگهدارنده مکان که وقتی خروجی آن تغذیه نمی شود از input
عبور می کند.
خلاصه
استدلال ها:
- scope: یک شی Scope
- ورودی: مقدار پیشفرض برای تولید زمانی که
output
تغذیه نمیشود. - شکل: شکل (احتمالاً جزئی) تانسور.
برمی گرداند:
-
Output
: یک تانسور مکان نگهدار که در صورت عدم تغذیه،input
را به طور پیش فرض انجام می دهد.
سازندگان و ویرانگرها | |
---|---|
PlaceholderWithDefault (const :: tensorflow::Scope & scope, :: tensorflow::Input input, PartialTensorShape shape) |
صفات عمومی | |
---|---|
operation | |
output |
توابع عمومی | |
---|---|
node () const | ::tensorflow::Node * |
operator::tensorflow::Input () const | |
operator::tensorflow::Output () const |
صفات عمومی
عملیات
Operation operation
خروجی
::tensorflow::Output output
توابع عمومی
PlaceholderWithDefault
PlaceholderWithDefault( const ::tensorflow::Scope & scope, ::tensorflow::Input input, PartialTensorShape shape )
گره
::tensorflow::Node * node() const
عملگر::tensorflow::ورودی
operator::tensorflow::Input() const
عملگر::tensorflow::خروجی
operator::tensorflow::Output() const
جز در مواردی که غیر از این ذکر شده باشد،محتوای این صفحه تحت مجوز Creative Commons Attribution 4.0 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2025-07-25 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2025-07-25 بهوقت ساعت هماهنگ جهانی."],[],[],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```"]]