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

Function make_input_1d

subprojects/llama.cpp/tests/test-alloc.cpp:136–140  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

134}
135
136static ggml_tensor * make_input_1d(ggml_context * ctx, int64_t n_elements) {
137 ggml_tensor * t = ggml_new_tensor_1d(ctx, GGML_TYPE_F32, n_elements);
138 ggml_set_input(t);
139 return t;
140}
141
142static ggml_tensor * make_input_with_size(ggml_context * ctx, size_t size_bytes) {
143 GGML_ASSERT(size_bytes % 4 == 0);

Callers 2

make_input_with_sizeFunction · 0.85
test_view_inplaceFunction · 0.85

Calls 2

ggml_new_tensor_1dFunction · 0.85
ggml_set_inputFunction · 0.85

Tested by

no test coverage detected