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

Method testBatch

tensorflow/python/data/util/structure_test.py:646–651  ·  view source on GitHub ↗
(self, element_structure, batch_size,
                expected_batched_structure)

Source from the content-addressed store, hash-verified

644 }),
645 )
646 def testBatch(self, element_structure, batch_size,
647 expected_batched_structure):
648 batched_structure = nest.map_structure(
649 lambda component_spec: component_spec._batch(batch_size),
650 element_structure)
651 self.assertEqual(batched_structure, expected_batched_structure)
652
653 @parameterized.named_parameters(
654 ("Tensor", tensor_spec.TensorSpec(

Callers

nothing calls this directly

Calls 1

_batchMethod · 0.45

Tested by

no test coverage detected