Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
''
&
#x27;
172
Returns:
173
the number of dimensions of the tensor.
174
''
&
#x27;
175
return
self.data.nDim()
176
177
def
is_empty(self):
178
''
&
#x27;
Callers
13
is_empty
Method · 0.95
repeat
Method · 0.95
sum
Function · 0.95
add_bias
Function · 0.45
cross_entropy
Function · 0.45
softmax_cross_entropy
Function · 0.45
cossim
Function · 0.45
average
Function · 0.45
einsum
Function · 0.45
tensordot
Function · 0.45
sum_columns
Function · 0.45
sum_rows
Function · 0.45
Calls
1
nDim
Method · 0.80
Tested by
1
test_tensor_fields
Method · 0.36