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

Method size

tensorflow/python/keras/utils/io_utils.py:145–151  ·  view source on GitHub ↗

Gets the total dataset size (number of elements). Returns: An integer denoting the number of elements in the dataset.

(self)

Source from the content-addressed store, hash-verified

143
144 @property
145 def size(self):
146 """Gets the total dataset size (number of elements).
147
148 Returns:
149 An integer denoting the number of elements in the dataset.
150 """
151 return np.prod(self.shape)
152
153 @staticmethod
154 def _to_type_spec(value):

Callers 15

testDenseShapeMethod · 0.45
testSparseShapeMethod · 0.45
testSizeDtypeMethod · 0.45
OuterBodyMethod · 0.45
np_aucMethod · 0.45
outer_bodyMethod · 0.45
testWhile_4Method · 0.45
testWhile_5Method · 0.45
_compareSizeMethod · 0.45
_compareSizeSparseMethod · 0.45
testCleanupMethod · 0.45
testStaticHashTableMethod · 0.45

Calls

no outgoing calls

Tested by 15

testDenseShapeMethod · 0.36
testSparseShapeMethod · 0.36
testSizeDtypeMethod · 0.36
OuterBodyMethod · 0.36
np_aucMethod · 0.36
outer_bodyMethod · 0.36
testWhile_4Method · 0.36
testWhile_5Method · 0.36
_compareSizeMethod · 0.36
_compareSizeSparseMethod · 0.36
testCleanupMethod · 0.36
testStaticHashTableMethod · 0.36