MCPcopy Create free account
hub / github.com/apache/singa / is_empty

Method is_empty

python/singa/tensor.py:177–182  ·  view source on GitHub ↗

Returns: True if the tensor is empty according to its shape

(self)

Source from the content-addressed store, hash-verified

175 return self.data.nDim()
176
177 def is_empty(self):
178 '''
179 Returns:
180 True if the tensor is empty according to its shape
181 '''
182 return self.ndim() == 0
183
184 def is_transpose(self):
185 '''

Callers

nothing calls this directly

Calls 1

ndimMethod · 0.95

Tested by

no test coverage detected