MCPcopy 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

backwardMethod · 0.95
backwardMethod · 0.95
backwardMethod · 0.95
backwardMethod · 0.95
handle_odd_pad_fwdFunction · 0.80
handle_odd_pad_bwdFunction · 0.80
same_pad_shape_checkFunction · 0.80
forwardMethod · 0.80
forwardMethod · 0.80
forwardMethod · 0.80
forwardMethod · 0.80
forwardMethod · 0.80

Calls 1

sizeMethod · 0.45

Tested by 15

_shape_helperMethod · 0.64
test_conv2dMethod · 0.64
test_poolingMethod · 0.64
test_batch_normMethod · 0.64
_cTensor_to_pyTensorFunction · 0.64
_ctensor_eq_ndarrayFunction · 0.64
_rnn_helperMethod · 0.64
_conv2d_helperMethod · 0.64
_conv_same_padMethod · 0.64
_pooling_same_padMethod · 0.64
_batchnorm2d_helperMethod · 0.64