Split the values of a `Tensor` into the TensorArray. Args: value: (N+1)-D. Tensor of type `dtype`. The Tensor to split. lengths: 1-D. int32 vector with the lengths to use when splitting `value` along its first dimension. name: A name for the operation (optional).
(self, value, lengths, name=None)
| 1169 | |
| 1170 | @tf_should_use.should_use_result |
| 1171 | def split(self, value, lengths, name=None): |
| 1172 | """Split the values of a `Tensor` into the TensorArray. |
| 1173 | |
| 1174 | Args: |
| 1175 | value: (N+1)-D. Tensor of type `dtype`. The Tensor to split. |
| 1176 | lengths: 1-D. int32 vector with the lengths to use when splitting |
| 1177 | `value` along its first dimension. |
| 1178 | name: A name for the operation (optional). |
| 1179 | |
| 1180 | Returns: |
| 1181 | A new TensorArray object with flow that ensures the split occurs. |
| 1182 | Use this object all for subsequent operations. |
| 1183 | |
| 1184 | Raises: |
| 1185 | ValueError: if the shape inference fails. |
| 1186 | """ |
| 1187 | return self._implementation.split(value, lengths, name=name) |
| 1188 | |
| 1189 | def size(self, name=None): |
| 1190 | """Return the size of the TensorArray.""" |
no outgoing calls