MCPcopy Create free account
hub / github.com/appdevforall/CodeOnTheGo / ggml_new_tensor_4d

Function ggml_new_tensor_4d

subprojects/llama.cpp/ggml/src/ggml.c:1775–1784  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1773}
1774
1775struct ggml_tensor * ggml_new_tensor_4d(
1776 struct ggml_context * ctx,
1777 enum ggml_type type,
1778 int64_t ne0,
1779 int64_t ne1,
1780 int64_t ne2,
1781 int64_t ne3) {
1782 const int64_t ne[4] = { ne0, ne1, ne2, ne3 };
1783 return ggml_new_tensor(ctx, type, 4, ne);
1784}
1785
1786void * ggml_new_buffer(struct ggml_context * ctx, size_t nbytes) {
1787 struct ggml_object * obj = ggml_new_object(ctx, GGML_OBJECT_TYPE_WORK_BUFFER, nbytes);

Callers 15

weight_buft_supportedFunction · 0.85
build_attn_inp_kv_implFunction · 0.85
build_attn_inp_k_implFunction · 0.85
build_attn_inp_crossMethod · 0.85
build_rwkv6_time_mixMethod · 0.85
build_rwkv7_time_mixMethod · 0.85
ggml_new_tensor_4dMethod · 0.85
build_graphMethod · 0.85
build_graphMethod · 0.85

Calls 1

ggml_new_tensorFunction · 0.85

Tested by 15

ggml_new_tensor_4dMethod · 0.68
build_graphMethod · 0.68
build_graphMethod · 0.68
build_graphMethod · 0.68
build_graphMethod · 0.68
build_graphMethod · 0.68
build_graphMethod · 0.68
build_graphMethod · 0.68
build_graphMethod · 0.68
build_graphMethod · 0.68
build_graphMethod · 0.68
build_graphMethod · 0.68