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

Method split

tensorflow/python/ops/tensor_array_ops.py:1171–1187  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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."""

Callers 15

testSplitShapeMethod · 0.95
fnMethod · 0.95
get_python_pathFunction · 0.45
setup_pythonFunction · 0.45
convert_version_to_intFunction · 0.45
check_bazel_versionFunction · 0.45
set_cc_opt_flagsFunction · 0.45
is_cuda_compatibleFunction · 0.45

Calls

no outgoing calls

Tested by 15

testSplitShapeMethod · 0.76
fnMethod · 0.76
mainFunction · 0.36
mainFunction · 0.36
test_docs_for_classMethod · 0.36
sort_keyMethod · 0.36
test_docs_for_moduleMethod · 0.36