MCPcopy Create free account
hub / github.com/Tiiny-AI/PowerInfer / get_f32

Function get_f32

examples/llava/clip.cpp:106–110  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

104}
105
106static float get_f32(const gguf_context * ctx, const std::string & key) {
107 const int i = get_key_idx(ctx, key.c_str());
108
109 return gguf_get_val_f32(ctx, i);
110}
111
112static struct ggml_tensor * get_tensor(struct ggml_context * ctx, const std::string & name) {
113 struct ggml_tensor * cur = ggml_get_tensor(ctx, name.c_str());

Callers 2

load_hparamsMethod · 0.85
clip_model_loadFunction · 0.85

Calls 3

get_key_idxFunction · 0.85
gguf_get_val_f32Function · 0.50
c_strMethod · 0.45

Tested by

no test coverage detected