We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e9c82d1 commit 6b0d342Copy full SHA for 6b0d342
ggml/src/ggml-alloc.c
@@ -294,6 +294,12 @@ static void ggml_dyn_tallocr_reset(struct ggml_dyn_tallocr * alloc) {
294
alloc->free_blocks[0].offset = 0;
295
alloc->free_blocks[0].size = SIZE_MAX/2; // restrict maximum size of a measure allocator to half size_t max to avoid overflows
296
alloc->max_size = 0;
297
+
298
+#ifdef GGML_ALLOCATOR_DEBUG
299
+ for (int i = 0; i < 1024; i++) {
300
+ alloc->allocated_tensors[i].tensor = NULL;
301
+ }
302
+#endif
303
}
304
305
static struct ggml_dyn_tallocr * ggml_dyn_tallocr_new(size_t alignment) {
0 commit comments