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

Function ggml_new_tensor_4d

ggml.c:2556–2565  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2554}
2555
2556struct ggml_tensor * ggml_new_tensor_4d(
2557 struct ggml_context * ctx,
2558 enum ggml_type type,
2559 int64_t ne0,
2560 int64_t ne1,
2561 int64_t ne2,
2562 int64_t ne3) {
2563 const int64_t ne[4] = { ne0, ne1, ne2, ne3 };
2564 return ggml_new_tensor(ctx, type, 4, ne);
2565}
2566
2567struct ggml_tensor * ggml_new_i32(struct ggml_context * ctx, int32_t value) {
2568 ggml_scratch_save(ctx);

Callers 4

ggml_concatFunction · 0.70
ggml_cont_4dFunction · 0.70
ggml_upscale_implFunction · 0.70
clip_image_build_graphFunction · 0.50

Calls 1

ggml_new_tensorFunction · 0.70

Tested by

no test coverage detected