[ Web Proxy ]
URL:
Viewing: https://www.tensorflow.org/api_docs/python/tf/raw_ops/Barrier [Back]  [Original]

tf.raw_ops.Barrier  |  TensorFlow v2.16.1 Skip to main content
TensorFlow [TensorFlow]

tf.raw_ops.Barrier Stay organized with collections Save and categorize content based on your preferences.

Defines a barrier that persists across different graph executions.

View aliases

Compat aliases for migration

See Migration guide for more details.

tf.compat.v1.raw_ops.Barrier

A barrier represents a key-value map, where each key is a string, and each value is a tuple of tensors.

At runtime, the barrier contains 'complete' and 'incomplete' elements. A complete element has defined tensors for all components of its value tuple, and may be accessed using BarrierTakeMany. An incomplete element has some undefined components in its value tuple, and may be updated using BarrierInsertMany.

component_types A list of tf.DTypes that has length >= 1. The type of each component in a value.
shapes An optional list of shapes (each a tf.TensorShape or list of ints). Defaults to []. The shape of each component in a value. Each shape must be 1 in the first dimension. The length of this attr must be the same as the length of component_types.
capacity An optional int. Defaults to -1. The capacity of the barrier. The default capacity is MAX_INT32, which is the largest capacity of the underlying queue.
container An optional string. Defaults to "". If non-empty, this barrier is placed in the given container. Otherwise, a default container is used.
shared_name An optional string. Defaults to "". If non-empty, this barrier will be shared under the given name across multiple sessions.
name A name for the operation (optional).

A Tensor of type mutable string.

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 2024-04-26 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 2024-04-26 UTC."],[],[]]

Web Proxy Viewer  |  New URL  |  Original Page