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

Method run

src/models/vevo2/components.cpp:1039–1071  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1037 out.ids.resize(static_cast<size_t>(output_frames));
1038 ggml_backend_tensor_get(ids_output, out.ids.data(), 0, out.ids.size() * sizeof(int32_t));
1039 return out;
1040 }
1041
1042 ggml_backend_t backend = nullptr;
1043 bool uses_whisper = false;
1044 int64_t feature_frames = 0;
1045 int64_t output_frames = 0;
1046 std::unique_ptr<ggml_context, GgmlContextDeleter> ctx;
1047 ggml_tensor * chromagram_input = nullptr;
1048 ggml_tensor * whisper_input = nullptr;
1049 ggml_tensor * ids_output = nullptr;
1050 ggml_cgraph * graph = nullptr;
1051 ggml_gallocr_t gallocr = nullptr;
1052};
1053
1054Vevo2CocoProsodyTokenizerRuntime::Vevo2CocoProsodyTokenizerRuntime(
1055 const Vevo2Assets & assets,
1056 engine::core::ExecutionContext & execution_context,
1057 size_t weight_context_bytes,
1058 size_t graph_context_bytes,
1059 engine::assets::TensorStorageType matmul_weight_storage_type,
1060 engine::assets::TensorStorageType conv_weight_storage_type)
1061 : config_(assets.config.prosody_tokenizer),
1062 execution_context_(execution_context),
1063 graph_context_bytes_(graph_context_bytes),
1064 weight_source_(assets.prosody_tokenizer_weights),
1065 weights_(load_coco_tokenizer_weights(
1066 config_,
1067 "prosody_tokenizer",
1068 execution_context.backend(),
1069 execution_context.backend_type(),
1070 weight_context_bytes,
1071 matmul_weight_storage_type,
1072 conv_weight_storage_type,
1073 *weight_source_)),
1074 name_("prosody_tokenizer") {

Callers 2

encode_feature_framesMethod · 0.45

Calls 7

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
resizeMethod · 0.45

Tested by

no test coverage detected