| 1929 | } |
| 1930 | |
| 1931 | void ggml_print_objects(const struct ggml_context * ctx) { |
| 1932 | struct ggml_object * obj = ctx->objects_begin; |
| 1933 | |
| 1934 | GGML_PRINT("%s: objects in context %p:\n", __func__, (const void *) ctx); |
| 1935 | |
| 1936 | while (obj != NULL) { |
| 1937 | ggml_print_object(obj); |
| 1938 | obj = obj->next; |
| 1939 | } |
| 1940 | |
| 1941 | GGML_PRINT("%s: --- end ---\n", __func__); |
| 1942 | } |
| 1943 | |
| 1944 | int64_t ggml_nelements(const struct ggml_tensor * tensor) { |
| 1945 | static_assert(GGML_MAX_DIMS == 4, "GGML_MAX_DIMS is not 4 - update this function"); |
nothing calls this directly
no test coverage detected