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

Method _unbatch

tensorflow/python/data/ops/dataset_ops.py:2623–2626  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2621 tensor_shape.TensorShape([batch_size]).concatenate(self._dataset_shape))
2622
2623 def _unbatch(self):
2624 if self._dataset_shape.ndims == 0:
2625 raise ValueError("Unbatching a dataset is only supported for rank >= 1")
2626 return DatasetSpec(self._element_spec, self._dataset_shape[1:])
2627
2628 def _to_batched_tensor_list(self, value):
2629 if self._dataset_shape.ndims == 0:

Callers 4

__init__Method · 0.45
__init__Method · 0.45
testUnbatchMethod · 0.45

Calls 1

DatasetSpecClass · 0.85

Tested by 2

testUnbatchMethod · 0.36