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

Method num_elements

src/framework/core/module.cpp:76–82  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

74}
75
76int64_t TensorShape::num_elements() const {
77 int64_t total = 1;
78 for (size_t i = 0; i < rank; ++i) {
79 total *= dims[i];
80 }
81 return total;
82}
83
84TensorShape TensorShape::with_last_dim(int64_t value) const {
85 TensorShape result = *this;

Callers 15

buildMethod · 0.80
buildMethod · 0.80
buildMethod · 0.80
decode_tensor_data_f32Function · 0.80
write_tensor_f32Function · 0.80
write_tensor_f32_sliceFunction · 0.80
write_tensor_f16Function · 0.80
write_tensor_i32Function · 0.80
reshape_tensorFunction · 0.80
read_tensorMethod · 0.80
FixedShapeGraphClass · 0.80

Calls

no outgoing calls

Tested by 2

write_tensor_f32Function · 0.64
run_conv_transpose_caseFunction · 0.64