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

Method ndim

python/singa/tensor.py:170–175  ·  view source on GitHub ↗

Returns: the number of dimensions of the tensor.

(self)

Source from the content-addressed store, hash-verified

168 return False
169
170 def ndim(self):
171 '''
172 Returns:
173 the number of dimensions of the tensor.
174 '''
175 return self.data.nDim()
176
177 def is_empty(self):
178 '''

Callers 13

is_emptyMethod · 0.95
repeatMethod · 0.95
sumFunction · 0.95
add_biasFunction · 0.45
cross_entropyFunction · 0.45
softmax_cross_entropyFunction · 0.45
cossimFunction · 0.45
averageFunction · 0.45
einsumFunction · 0.45
tensordotFunction · 0.45
sum_columnsFunction · 0.45
sum_rowsFunction · 0.45

Calls 1

nDimMethod · 0.80

Tested by 1

test_tensor_fieldsMethod · 0.36