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

Function validate_weight_storage

src/models/sortformer_diar/session.cpp:38–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36}
37
38std::shared_ptr<const engine::model_spec::ModelContract> require_contract(
39 std::shared_ptr<const engine::model_spec::ModelContract> contract) {
40 if (contract == nullptr) {
41 throw std::runtime_error("Sortformer diar session requires a model contract");
42 }
43 return contract;
44}
45
46runtime::GraphCapacityMode default_graph_capacity_mode(const core::ExecutionContext & execution_context) {
47 return execution_context.uses_host_graph_plan()
48 ? runtime::GraphCapacityMode::Tiered
49 : runtime::GraphCapacityMode::Fixed;
50}

Callers 1

SortformerDiarSessionMethod · 0.70

Calls 1

stringFunction · 0.50

Tested by

no test coverage detected