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

Function ensure_f32

src/models/ace_step/diffusion.cpp:57–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

55}
56
57core::TensorValue ensure_f32(core::ModuleBuildContext & ctx, const core::TensorValue & input) {
58 if (input.type == GGML_TYPE_F32) {
59 return input;
60 }
61 return core::wrap_tensor(ggml_cast(ctx.ggml, input.tensor, GGML_TYPE_F32), input.shape, GGML_TYPE_F32);
62}
63
64core::TensorValue reshape_heads(
65 core::ModuleBuildContext & ctx,

Callers 2

dit_layerFunction · 0.70
buildMethod · 0.70

Calls 2

wrap_tensorFunction · 0.85
ggml_castFunction · 0.85

Tested by

no test coverage detected