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

Function ensure_f32

src/models/ace_step/vae_decoder.cpp:72–77  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

70}
71
72core::TensorValue ensure_f32(core::ModuleBuildContext & ctx, const core::TensorValue & value) {
73 if (value.type == GGML_TYPE_F32) {
74 return value;
75 }
76 return core::wrap_tensor(ggml_cast(ctx.ggml, value.tensor, GGML_TYPE_F32), value.shape, GGML_TYPE_F32);
77}
78
79core::TensorValue ensure_contiguous_nontransposed(
80 core::ModuleBuildContext & ctx,

Callers 4

build_snake1d_exact_bctFunction · 0.70
build_conv1dFunction · 0.70
build_conv_transpose1dFunction · 0.70

Calls 2

wrap_tensorFunction · 0.85
ggml_castFunction · 0.85

Tested by

no test coverage detected