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

Function ggml_new_i32

ggml.c:2567–2577  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2565}
2566
2567struct ggml_tensor * ggml_new_i32(struct ggml_context * ctx, int32_t value) {
2568 ggml_scratch_save(ctx);
2569
2570 struct ggml_tensor * result = ggml_new_tensor_1d(ctx, GGML_TYPE_I32, 1);
2571
2572 ggml_scratch_load(ctx);
2573
2574 ggml_set_i32(result, value);
2575
2576 return result;
2577}
2578
2579struct ggml_tensor * ggml_new_f32(struct ggml_context * ctx, float value) {
2580 ggml_scratch_save(ctx);

Callers

nothing calls this directly

Calls 4

ggml_scratch_saveFunction · 0.85
ggml_scratch_loadFunction · 0.85
ggml_new_tensor_1dFunction · 0.70
ggml_set_i32Function · 0.70

Tested by

no test coverage detected