Stay organized with collections
Save and categorize content based on your preferences.
tensorflow::ops::Stage
#include <data_flow_ops.h>
Stage values similar to a lightweight Enqueue.
Summary
The basic functionality of this Op is similar to a queue with many fewer capabilities and options. This Op is optimized for performance.
Args:
- scope: A Scope object
- values: a list of tensors dtypes A list of data types that inserted values should adhere to.
Optional attributes (see Attrs
):
- capacity: Maximum number of elements in the Staging Area. If > 0, inserts on the container will block when the capacity is reached.
- memory_limit: The maximum number of bytes allowed for Tensors in the Staging Area. If > 0, inserts will block until sufficient space is available.
- container: If non-empty, this queue is placed in the given container. Otherwise, a default container is used.
- shared_name: It is necessary to match this name to the matching Unstage Op.
Returns:
Public attributes
Public functions
operator::tensorflow::Operation
operator::tensorflow::Operation() const
Public static functions
Capacity
Attrs Capacity(
int64 x
)
Container
Attrs Container(
StringPiece x
)
MemoryLimit
Attrs MemoryLimit(
int64 x
)
SharedName
Attrs SharedName(
StringPiece x
)
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. Some content is licensed under the numpy license.
Last updated 2021-11-15 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2021-11-15 UTC."],[],[],null,["# tensorflow::ops::Stage Class Reference\n\ntensorflow::ops::Stage\n======================\n\n`#include \u003cdata_flow_ops.h\u003e`\n\n[Stage](/api_docs/cc/class/tensorflow/ops/stage#classtensorflow_1_1ops_1_1_stage) values similar to a lightweight Enqueue.\n\nSummary\n-------\n\nThe basic functionality of this Op is similar to a queue with many fewer capabilities and options. This Op is optimized for performance.\n\nArgs:\n\n- scope: A [Scope](/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope) object\n- values: a list of tensors dtypes A list of data types that inserted values should adhere to.\n\n\u003cbr /\u003e\n\nOptional attributes (see [Attrs](/api_docs/cc/struct/tensorflow/ops/stage/attrs#structtensorflow_1_1ops_1_1_stage_1_1_attrs)):\n\n- capacity: [Maximum](/api_docs/cc/class/tensorflow/ops/maximum#classtensorflow_1_1ops_1_1_maximum) number of elements in the Staging Area. If \\\u003e 0, inserts on the container will block when the capacity is reached.\n- memory_limit: The maximum number of bytes allowed for Tensors in the Staging Area. If \\\u003e 0, inserts will block until sufficient space is available.\n- container: If non-empty, this queue is placed in the given container. Otherwise, a default container is used.\n- shared_name: It is necessary to match this name to the matching [Unstage](/api_docs/cc/class/tensorflow/ops/unstage#classtensorflow_1_1ops_1_1_unstage) Op.\n\n\u003cbr /\u003e\n\nReturns:\n\n- the created [Operation](/api_docs/cc/class/tensorflow/operation#classtensorflow_1_1_operation)\n\n\u003cbr /\u003e\n\n| ### Constructors and Destructors ||\n|---|---|\n| [Stage](#classtensorflow_1_1ops_1_1_stage_1a2e6dddeaa815c5474e05e750d6e386bd)`(const ::`[tensorflow::Scope](/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope)` & scope, ::`[tensorflow::InputList](/api_docs/cc/class/tensorflow/input-list#classtensorflow_1_1_input_list)` values)` ||\n| [Stage](#classtensorflow_1_1ops_1_1_stage_1a15dff0cc88976331c3c77a3cca8f8ac5)`(const ::`[tensorflow::Scope](/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope)` & scope, ::`[tensorflow::InputList](/api_docs/cc/class/tensorflow/input-list#classtensorflow_1_1_input_list)` values, const `[Stage::Attrs](/api_docs/cc/struct/tensorflow/ops/stage/attrs#structtensorflow_1_1ops_1_1_stage_1_1_attrs)` & attrs)` ||\n\n| ### Public attributes ||\n|-----------------------------------------------------------------------------------|------------------------------------------------------------------------------------|\n| [operation](#classtensorflow_1_1ops_1_1_stage_1a9b9eb57d3e297f80b61856f1b299118d) | [Operation](/api_docs/cc/class/tensorflow/operation#classtensorflow_1_1_operation) |\n\n| ### Public functions ||\n|--------------------------------------------------------------------------------------------------------------------|---|\n| [operator::tensorflow::Operation](#classtensorflow_1_1ops_1_1_stage_1ab21fa3ef760d64ed97217cb2121990c0)`() const ` | |\n\n| ### Public static functions ||\n|-----------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------|\n| [Capacity](#classtensorflow_1_1ops_1_1_stage_1ac904517f73b2d8d7319ae4283f32b803)`(int64 x)` | [Attrs](/api_docs/cc/struct/tensorflow/ops/stage/attrs#structtensorflow_1_1ops_1_1_stage_1_1_attrs) |\n| [Container](#classtensorflow_1_1ops_1_1_stage_1ad5b1a9624677491e271d10594f568223)`(StringPiece x)` | [Attrs](/api_docs/cc/struct/tensorflow/ops/stage/attrs#structtensorflow_1_1ops_1_1_stage_1_1_attrs) |\n| [MemoryLimit](#classtensorflow_1_1ops_1_1_stage_1af4e300d7df49830d41d0eba7b35d1ccd)`(int64 x)` | [Attrs](/api_docs/cc/struct/tensorflow/ops/stage/attrs#structtensorflow_1_1ops_1_1_stage_1_1_attrs) |\n| [SharedName](#classtensorflow_1_1ops_1_1_stage_1a5a7ee7353ea1bc8416645b9e9568ce68)`(StringPiece x)` | [Attrs](/api_docs/cc/struct/tensorflow/ops/stage/attrs#structtensorflow_1_1ops_1_1_stage_1_1_attrs) |\n\n| ### Structs ||\n|---------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------|\n| [tensorflow::ops::Stage::Attrs](/api_docs/cc/struct/tensorflow/ops/stage/attrs) | Optional attribute setters for [Stage](/api_docs/cc/class/tensorflow/ops/stage#classtensorflow_1_1ops_1_1_stage). |\n\nPublic attributes\n-----------------\n\n### operation\n\n```text\nOperation operation\n``` \n\nPublic functions\n----------------\n\n### Stage\n\n```gdscript\n Stage(\n const ::tensorflow::Scope & scope,\n ::tensorflow::InputList values\n)\n``` \n\n### Stage\n\n```gdscript\n Stage(\n const ::tensorflow::Scope & scope,\n ::tensorflow::InputList values,\n const Stage::Attrs & attrs\n)\n``` \n\n### operator::tensorflow::Operation\n\n```gdscript\n operator::tensorflow::Operation() const \n``` \n\nPublic static functions\n-----------------------\n\n### Capacity\n\n```text\nAttrs Capacity(\n int64 x\n)\n``` \n\n### Container\n\n```text\nAttrs Container(\n StringPiece x\n)\n``` \n\n### MemoryLimit\n\n```text\nAttrs MemoryLimit(\n int64 x\n)\n``` \n\n### SharedName\n\n```text\nAttrs SharedName(\n StringPiece x\n)\n```"]]