MCPcopy Create free account
hub / github.com/0xShug0/audio.cpp / prefix_elements

Method prefix_elements

src/framework/core/module.cpp:64–74  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

62}
63
64int64_t TensorShape::prefix_elements() const {
65 if (rank <= 1) {
66 return 1;
67 }
68
69 int64_t total = 1;
70 for (size_t i = 0; i + 1 < rank; ++i) {
71 total *= dims[i];
72 }
73 return total;
74}
75
76int64_t TensorShape::num_elements() const {
77 int64_t total = 1;

Callers 10

flatten_to_matrix_shapeFunction · 0.80
flatten_to_matrix_shapeFunction · 0.80
flatten_to_matrix_shapeFunction · 0.80
flatten_to_matrix_shapeFunction · 0.80
quantize_f32_rowsFunction · 0.80
decode_tensor_data_f32Function · 0.80
linear_lastdimFunction · 0.80
linear_lastdimFunction · 0.80
values_to_bytesMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected