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

Function shape_string

src/framework/audio/flashsr.cpp:50–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

48};
49
50std::string shape_string(const engine::assets::TensorDataF32 & tensor) {
51 std::ostringstream oss;
52 oss << "[";
53 for (size_t i = 0; i < tensor.shape.rank; ++i) {
54 if (i != 0) {
55 oss << ",";
56 }
57 oss << tensor.shape.dims[i];
58 }
59 oss << "]";
60 return oss.str();
61}
62
63std::vector<float> require_channel_param(
64 const std::shared_ptr<const engine::assets::TensorSource> & source,

Callers 2

require_channel_paramFunction · 0.70
load_from_directoryMethod · 0.70

Calls 1

strMethod · 0.80

Tested by

no test coverage detected