ggml_opt_alloc function

  1. @Native<Void Function(ggml_opt_context_t, Bool)>(ggml_opt_context_t, ffi.Bool)>()
void ggml_opt_alloc(
  1. ggml_opt_context_t opt_ctx,
  2. 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,
);