MCPcopy Create free account
hub / github.com/PABannier/sam3.cpp / numel

Method numel

tests/test_vit.cpp:18–22  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16 std::vector<float> data;
17 std::vector<int> shape;
18 int numel() const {
19 int n = 1;
20 for (auto d : shape) n *= d;
21 return n;
22 }
23};
24
25static ref_tensor load_ref(const std::string & path) {

Callers 15

compare_ggml_vs_nhwcFunction · 0.45
compare_ggml_vs_nchwFunction · 0.45
mainFunction · 0.45
compare_state_nhwcFunction · 0.45
compare_state_nchwFunction · 0.45
compare_dump_directFunction · 0.45
mainFunction · 0.45
load_refFunction · 0.45
checkFunction · 0.45
test_encode_imageFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected