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

Method gather

tensorflow/python/ops/tensor_array_ops.py:1100–1115  ·  view source on GitHub ↗

Return selected values in the TensorArray as a packed `Tensor`. All of selected values must have been written and their shapes must all match. Args: indices: A `1-D` `Tensor` taking values in `[0, max_value)`. If the `TensorArray` is not dynamic, `max_value=size()`.

(self, indices, name=None)

Source from the content-addressed store, hash-verified

1098 return self._implementation.stack(name=name)
1099
1100 def gather(self, indices, name=None):
1101 """Return selected values in the TensorArray as a packed `Tensor`.
1102
1103 All of selected values must have been written and their shapes
1104 must all match.
1105
1106 Args:
1107 indices: A `1-D` `Tensor` taking values in `[0, max_value)`. If
1108 the `TensorArray` is not dynamic, `max_value=size()`.
1109 name: A name for the operation (optional).
1110
1111 Returns:
1112 The tensors in the `TensorArray` selected by `indices`, packed into one
1113 tensor.
1114 """
1115 return self._implementation.gather(indices, name=name)
1116
1117 def concat(self, name=None):
1118 """Return the values in the TensorArray as a concatenated `Tensor`.

Callers 15

ta_gatherMethod · 0.95
embedding_optFunction · 0.45
testInstantErrorMethod · 0.45
gatherFunction · 0.45
connected_componentsFunction · 0.45
_compute_placement_aucFunction · 0.45
_IndexFunction · 0.45
__init__Method · 0.45
_fnMethod · 0.45
calculate_lossFunction · 0.45
_fnMethod · 0.45

Calls

no outgoing calls

Tested by 15

ta_gatherMethod · 0.76
testInstantErrorMethod · 0.36
_fnMethod · 0.36
calculate_lossFunction · 0.36
_fnMethod · 0.36
_gather_locMethod · 0.36
testGatherMethod · 0.36
_fnMethod · 0.36