Stay organized with collections
Save and categorize content based on your preferences.
tensorflow::ops::PlaceholderWithDefault
#include <array_ops.h>
A placeholder op that passes through input
when its output is not fed.
Summary
Arguments:
- scope: A Scope object
- input: The default value to produce when
output
is not fed.
- shape: The (possibly partial) shape of the tensor.
Returns:
Output
: A placeholder tensor that defaults to input
if it is not fed.
Public attributes
Public functions
node
::tensorflow::Node * node() const
operator::tensorflow::Input() const
operator::tensorflow::Output
operator::tensorflow::Output() const
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2020-04-20 UTC.
[null,null,["Last updated 2020-04-20 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```"]]