MCPcopy Create free account
hub / github.com/MegEngine/MegEngine / SizeOutAxis

Function SizeOutAxis

dnn/src/cambricon/softmax/opr_impl.cpp:24–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22}
23
24size_t SizeOutAxis(const int axis, const size_t* dims, const int ndim) {
25 size_t size = 1;
26 for (int i = axis + 1; i < ndim; i++) {
27 size *= dims[i];
28 }
29 return size;
30}
31
32SmallVector<size_t> init_shape(_megdnn_tensor_in src, const int param_axis) {
33 auto dims = src.layout.shape;

Callers 1

init_shapeFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected