Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/apache/singa
/ shape
Method
shape
include/singa/core/tensor.h:95–98 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
93
const Shape &shape() const { return shape_; }
94
95
size_t shape(const size_t idx) const {
96
CHECK_LT(idx, shape_.size());
97
return shape_.at(idx);
98
}
99
100
size_t nDim() const { return shape_.size(); }
101
Callers
15
backward
Method · 0.95
backward
Method · 0.95
backward
Method · 0.95
backward
Method · 0.95
handle_odd_pad_fwd
Function · 0.80
handle_odd_pad_bwd
Function · 0.80
same_pad_shape_check
Function · 0.80
forward
Method · 0.80
forward
Method · 0.80
forward
Method · 0.80
forward
Method · 0.80
forward
Method · 0.80
Calls
1
size
Method · 0.45
Tested by
15
_shape_helper
Method · 0.64
test_conv2d
Method · 0.64
test_pooling
Method · 0.64
test_batch_norm
Method · 0.64
_cTensor_to_pyTensor
Function · 0.64
_ctensor_eq_ndarray
Function · 0.64
_rnn_helper
Method · 0.64
_conv2d_helper
Method · 0.64
_conv_same_pad
Method · 0.64
_pooling_same_pad
Method · 0.64
_SeparableConv2d_helper
Method · 0.64
_batchnorm2d_helper
Method · 0.64