ggml_opt_alloc function
- @Native<Void Function(ggml_opt_context_t, Bool)>(ggml_opt_context_t, ffi.Bool)>()
- ggml_opt_context_t opt_ctx,
- bool backward
allocate the next graph for evaluation, either forward or forward + backward must be called exactly once prior to calling ggml_opt_eval
Implementation
@ffi.Native<ffi.Void Function(ggml_opt_context_t, ffi.Bool)>()
external void ggml_opt_alloc(
ggml_opt_context_t opt_ctx,
bool backward,
);