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

Method run

src/models/vevo2/vocoder.cpp:358–379  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

356
357 ggml_backend_t backend = nullptr;
358 std::shared_ptr<const Vevo2VocoderWeights> weights;
359 int64_t frames = 0;
360 int64_t input_channels = 0;
361 int64_t head_dim = 0;
362 std::unique_ptr<ggml_context, GgmlContextDeleter> ctx;
363 ggml_tensor * input = nullptr;
364 ggml_tensor * output = nullptr;
365 ggml_cgraph * graph = nullptr;
366 ggml_gallocr_t gallocr = nullptr;
367};
368
369Vevo2VocoderRuntime::Vevo2VocoderRuntime(
370 const Vevo2Assets & assets,
371 engine::core::ExecutionContext & execution_context,
372 size_t weight_context_bytes,
373 size_t graph_context_bytes,
374 engine::assets::TensorStorageType matmul_weight_storage_type,
375 engine::assets::TensorStorageType conv_weight_storage_type)
376 : config_(assets.config.vocoder),
377 execution_context_(execution_context),
378 graph_context_bytes_(graph_context_bytes),
379 weight_source_(assets.vocoder_weights_0),
380 weights_(load_vocoder_weights(
381 execution_context.backend(),
382 execution_context.backend_type(),

Callers 1

decodeMethod · 0.45

Calls 6

ggml_backend_tensor_setFunction · 0.85
compute_backend_graphFunction · 0.85
ggml_backend_synchronizeFunction · 0.85
ggml_backend_tensor_getFunction · 0.85
sizeMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected