MCPcopy Create free account
hub / github.com/Arm-Examples/ML-examples / get_filename

Function get_filename

kleidiai-examples/audiogen-et/app/main.cpp:91–100  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

89}
90
91static std::string get_filename(std::string prompt, size_t seed) {
92 // Convert spaces to underscores
93 std::replace(prompt.begin(), prompt.end(), ' ', '_');
94
95 // Convert to lowercase
96 std::transform(prompt.begin(), prompt.end(), prompt.begin(),
97 [](unsigned char c) { return std::tolower(c); });
98
99 return prompt + "_" + std::to_string(seed) + ".wav";
100}
101
102static void fill_random_norm_dist(float* buff, size_t buff_sz, size_t seed) {
103 std::random_device rd{};

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected