tensorflow::ops::BarrierTakeMany::Attrs

#include <data_flow_ops.h>

Các thiết lập thuộc tính tùy chọn cho BarrierTakeMany .

Bản tóm tắt

Thuộc tính công khai

allow_small_batch_ = false
bool
timeout_ms_ = -1
int64
wait_for_incomplete_ = false
bool

Chức năng công cộng

AllowSmallBatch (bool x)
TF_MUST_USE_RESULT Attrs
Cho phép trả về ít hơn num_elements mục nếu rào chắn đã đóng.
TimeoutMs (int64 x)
TF_MUST_USE_RESULT Attrs
Nếu hàng đợi trống, thao tác này sẽ bị chặn trong tối đa timeout_ms mili giây.
WaitForIncomplete (bool x)
TF_MUST_USE_RESULT Attrs
Mặc định là false.

Thuộc tính công khai

cho phép_lô_nhỏ

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

thời gian_ms_

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

chờ_hoàn_thành_

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

Chức năng công cộng

Cho phép xử lý theo lô nhỏ

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

Cho phép trả về ít hơn num_elements mục nếu rào chắn đã đóng.

Mặc định là false

Hết thời gian

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

Nếu hàng đợi trống, thao tác này sẽ bị chặn trong tối đa timeout_ms mili giây.

Lưu ý: Tùy chọn này hiện chưa được hỗ trợ.

Mặc định là -1

Chờ hoàn thành

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

Mặc định là false.