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

Function regular_conv_weight

src/models/ace_step/vae_decoder.cpp:107–117  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

105}
106
107core::TensorValue regular_conv_weight(
108 const core::TensorValue & weight,
109 const char * module_name) {
110 const auto contiguous = require_contiguous_nontransposed_weight(weight, module_name);
111 if (contiguous.type == GGML_TYPE_F32 || contiguous.type == GGML_TYPE_F16) {
112 return contiguous;
113 }
114 throw std::runtime_error(
115 std::string(module_name) + " weight type is unsupported for direct graph binding: " +
116 ggml_type_name(contiguous.type));
117}
118
119core::TensorValue conv_transpose1d_weight(
120 const core::TensorValue & weight) {

Callers 1

build_conv1dFunction · 0.70

Calls 3

ggml_type_nameFunction · 0.85
stringFunction · 0.50

Tested by

no test coverage detected