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

Function SizeToAxis

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

Source from the content-addressed store, hash-verified

14}
15
16size_t SizeToAxis(const int axis, const size_t* dims) {
17 size_t size = 1;
18 for (int i = 0; i < axis; i++) {
19 size *= dims[i];
20 }
21 return size;
22}
23
24size_t SizeOutAxis(const int axis, const size_t* dims, const int ndim) {
25 size_t size = 1;

Callers 1

init_shapeFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected