ggml_graph_compute_with_ctx method

int ggml_graph_compute_with_ctx(
  1. Pointer<ggml_context> ctx,
  2. Pointer<ggml_cgraph> cgraph,
  3. int n_threads
)

same as ggml_graph_compute() but the work data is allocated as a part of the context note: the drawback of this API is that you must have ensured that the context has enough memory for the work data

Implementation

int ggml_graph_compute_with_ctx(
  ffi.Pointer<ggml_context> ctx,
  ffi.Pointer<ggml_cgraph> cgraph,
  int n_threads,
) {
  return _ggml_graph_compute_with_ctx(
    ctx,
    cgraph,
    n_threads,
  );
}