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

Method shape

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

Gets a numpy-style shape tuple giving the dataset dimensions. Returns: A numpy-style shape tuple.

(self)

Source from the content-addressed store, hash-verified

116
117 @property
118 def shape(self):
119 """Gets a numpy-style shape tuple giving the dataset dimensions.
120
121 Returns:
122 A numpy-style shape tuple.
123 """
124 return (self.end - self.start,) + self.data.shape[1:]
125
126 @property
127 def dtype(self):

Callers 15

testDenseShapeMethod · 0.45
testSparseShapeMethod · 0.45
_compareGradientYMethod · 0.45
_compareCpuMethod · 0.45
testBatchDimsMethod · 0.45
TriAngInvCompositeGradFunction · 0.45
_compareCpuMethod · 0.45
_compareGpuMethod · 0.45
_logSumExpMapMethod · 0.45
_compareShapeMethod · 0.45
_compareShapeSparseMethod · 0.45

Calls

no outgoing calls

Tested by 15

testDenseShapeMethod · 0.36
testSparseShapeMethod · 0.36
_compareGradientYMethod · 0.36
_compareCpuMethod · 0.36
testBatchDimsMethod · 0.36
TriAngInvCompositeGradFunction · 0.36
_compareCpuMethod · 0.36
_compareGpuMethod · 0.36
_logSumExpMapMethod · 0.36
_compareShapeMethod · 0.36
_compareShapeSparseMethod · 0.36