tensorflow::ops::BarrierTakeMany::Attrs

#include <data_flow_ops.h>

Optional attribute setters for BarrierTakeMany.

Summary

Public attributes
allow_small_batch_ = false
bool
timeout_ms_ = -1
int64
wait_for_incomplete_ = false
bool
Public functions
AllowSmallBatch(bool x)
TF_MUST_USE_RESULT Attrs
Allow to return less than num_elements items if barrier is already closed.
TimeoutMs(int64 x)
TF_MUST_USE_RESULT Attrs
If the queue is empty, this operation will block for up to timeout_ms milliseconds.
WaitForIncomplete(bool x)
TF_MUST_USE_RESULT Attrs
Defaults to false.

Public attributes

allow_small_batch_

bool tensorflow::ops::BarrierTakeMany::Attrs::allow_small_batch_ = false

timeout_ms_

int64 tensorflow::ops::BarrierTakeMany::Attrs::timeout_ms_ = -1

wait_for_incomplete_

bool tensorflow::ops::BarrierTakeMany::Attrs::wait_for_incomplete_ = false

Public functions

AllowSmallBatch

TF_MUST_USE_RESULT Attrs tensorflow::ops::BarrierTakeMany::Attrs::AllowSmallBatch(
  bool x
)

Allow to return less than num_elements items if barrier is already closed.

Defaults to false

TimeoutMs

TF_MUST_USE_RESULT Attrs tensorflow::ops::BarrierTakeMany::Attrs::TimeoutMs(
  int64 x
)

If the queue is empty, this operation will block for up to timeout_ms milliseconds.

Note: This option is not supported yet.

Defaults to -1

WaitForIncomplete

TF_MUST_USE_RESULT Attrs tensorflow::ops::BarrierTakeMany::Attrs::WaitForIncomplete(
  bool x
)

Defaults to false.

© 2020 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 4.0.
Code samples licensed under the Apache 2.0 License.
https://www.tensorflow.org/versions/r2.4/api_docs/cc/struct/tensorflow/ops/barrier-take-many/attrs