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

Function ggml_new_tensor_2d

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

Source from the content-addressed store, hash-verified

1754}
1755
1756struct ggml_tensor * ggml_new_tensor_2d(
1757 struct ggml_context * ctx,
1758 enum ggml_type type,
1759 int64_t ne0,
1760 int64_t ne1) {
1761 const int64_t ne[2] = { ne0, ne1 };
1762 return ggml_new_tensor(ctx, type, 2, ne);
1763}
1764
1765struct ggml_tensor * ggml_new_tensor_3d(
1766 struct ggml_context * ctx,

Callers 15

save_tensor_for_layerMethod · 0.85
filter_nonzero_rowsMethod · 0.85
build_v_diffMethod · 0.85
pca_modelMethod · 0.85
buildMethod · 0.85
buildMethod · 0.85
buildMethod · 0.85
buildMethod · 0.85
save_imatrixMethod · 0.85
weight_buft_supportedFunction · 0.85
build_inp_embdMethod · 0.85

Calls 1

ggml_new_tensorFunction · 0.85

Tested by 14

test_barrierFunction · 0.68
test_activeFunction · 0.68
test_multi_graphFunction · 0.68
test_regressionFunction · 0.68
ggml_new_tensor_2dMethod · 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
llm_build_kqvMethod · 0.68