ggml_backend_sched_reset function
- @Native<Void Function(ggml_backend_sched_t)>(ggml_backend_sched_t)>()
- ggml_backend_sched_t sched
Reset all assignments and allocators - must be called before changing the node backends or allocating a new graph. This in effect deallocates all tensors that were previously allocated and leaves them with dangling pointers. The correct way to use this API is to discard the deallocated tensors and create new ones.
Implementation
@ffi.Native<ffi.Void Function(ggml_backend_sched_t)>()
external void ggml_backend_sched_reset(
ggml_backend_sched_t sched,
);