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

Method numel

tests/test_phase3.cpp:31–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29 std::vector<float> data;
30 std::vector<int> shape;
31 int numel() const {
32 int n = 1;
33 for (auto d : shape) n *= d;
34 return n;
35 }
36};
37
38static ref_tensor load_ref(const std::string & path) {

Callers 5

load_refFunction · 0.45
checkFunction · 0.45
test_ropeFunction · 0.45
test_encode_imageFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected