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

Method stack

tensorflow/python/ops/tensor_array_ops.py:1086–1098  ·  view source on GitHub ↗

Return the values in the TensorArray as a stacked `Tensor`. All of the values must have been written and their shapes must all match. If input shapes have rank-`R`, then output shape will have rank-`(R+1)`. Args: name: A name for the operation (optional). Returns: All

(self, name=None)

Source from the content-addressed store, hash-verified

1084 return self._implementation.write(index, value, name=name)
1085
1086 def stack(self, name=None):
1087 """Return the values in the TensorArray as a stacked `Tensor`.
1088
1089 All of the values must have been written and their shapes must all match.
1090 If input shapes have rank-`R`, then output shape will have rank-`(R+1)`.
1091
1092 Args:
1093 name: A name for the operation (optional).
1094
1095 Returns:
1096 All the tensors in the TensorArray stacked into one tensor.
1097 """
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`.

Calls

no outgoing calls