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

Method _batch

tensorflow/python/data/ops/dataset_ops.py:2618–2621  ·  view source on GitHub ↗
(self, batch_size)

Source from the content-addressed store, hash-verified

2616 return DatasetSpec(value.element_spec) # pylint: disable=protected-access
2617
2618 def _batch(self, batch_size):
2619 return DatasetSpec(
2620 self._element_spec,
2621 tensor_shape.TensorShape([batch_size]).concatenate(self._dataset_shape))
2622
2623 def _unbatch(self):
2624 if self._dataset_shape.ndims == 0:

Callers 2

__init__Method · 0.45
testBatchMethod · 0.45

Calls 2

DatasetSpecClass · 0.85
concatenateMethod · 0.45

Tested by 1

testBatchMethod · 0.36