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

Function ggml_new_tensor_2d

ggml.c:2537–2544  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2535}
2536
2537struct ggml_tensor * ggml_new_tensor_2d(
2538 struct ggml_context * ctx,
2539 enum ggml_type type,
2540 int64_t ne0,
2541 int64_t ne1) {
2542 const int64_t ne[2] = { ne0, ne1 };
2543 return ggml_new_tensor(ctx, type, 2, ne);
2544}
2545
2546struct ggml_tensor * ggml_new_tensor_3d(
2547 struct ggml_context * ctx,

Callers 15

ggml_get_rowsFunction · 0.70
ggml_get_rows_backFunction · 0.70
ggml_opt_initFunction · 0.70
llm_build_inp_embdFunction · 0.70
init_modelFunction · 0.50
init_model_loraFunction · 0.50
mainFunction · 0.50
mainFunction · 0.50
init_modelFunction · 0.50
mainFunction · 0.50

Calls 1

ggml_new_tensorFunction · 0.70

Tested by

no test coverage detected