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

Function make_input_with_size

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

Source from the content-addressed store, hash-verified

140}
141
142static ggml_tensor * make_input_with_size(ggml_context * ctx, size_t size_bytes) {
143 GGML_ASSERT(size_bytes % 4 == 0);
144 return make_input_1d(ctx, size_bytes / 4);
145}
146
147static void assign_names(ggml_context * ctx, const char * prefix = "x") {
148 int i = 0;

Callers 11

test_not_enough_chunksFunction · 0.85
test_fill_leftover_spaceFunction · 0.85
test_reuse_and_freeFunction · 0.85
test_merge_free_blockFunction · 0.85
test_buffer_size_zeroFunction · 0.85
test_reallocationFunction · 0.85

Calls 1

make_input_1dFunction · 0.85

Tested by

no test coverage detected