MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / _select_which_to_enqueue

Function _select_which_to_enqueue

tensorflow/python/training/input.py:712–718  ·  view source on GitHub ↗

Select which examples to enqueue based on vector `keep_input`.

(tensor_list, keep_input)

Source from the content-addressed store, hash-verified

710
711
712def _select_which_to_enqueue(tensor_list, keep_input):
713 """Select which examples to enqueue based on vector `keep_input`."""
714 select_i = math_ops.cast(keep_input, dtypes.int32)
715 tensor_list = [
716 data_flow_ops.dynamic_partition(x, select_i, num_partitions=2)[1]
717 for x in tensor_list]
718 return tensor_list
719
720
721def _enqueue_join(queue, tensor_list_list, enqueue_many, keep_input):

Callers 2

_enqueue_joinFunction · 0.85
_enqueueFunction · 0.85

Calls 1

castMethod · 0.45

Tested by

no test coverage detected