MCPcopy Create free account
hub / github.com/0xShug0/audio.cpp / build_graph

Method build_graph

external/ggml/tests/test-backend-ops.cpp:4642–4651  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4640 : type(type), ne(ne) {}
4641
4642 ggml_tensor * build_graph(ggml_context * ctx) override {
4643 ggml_tensor * a = ggml_new_tensor(ctx, type, 4, ne.data());
4644 ggml_set_param(a);
4645 ggml_set_name(a, "a");
4646
4647 ggml_tensor * out = ggml_round(ctx, a);
4648 ggml_set_name(out, "out");
4649
4650 return out;
4651 }
4652
4653 void initialize_tensors(ggml_context * ctx) override {
4654 for (ggml_tensor * t = ggml_get_first_tensor(ctx); t != NULL; t = ggml_get_next_tensor(ctx, t)) {

Callers

nothing calls this directly

Calls 5

ggml_new_tensorFunction · 0.85
ggml_set_paramFunction · 0.85
ggml_set_nameFunction · 0.85
ggml_roundFunction · 0.85
dataMethod · 0.45

Tested by

no test coverage detected