Learn R Programming

ggmlR (version 0.8.1)

ggml_task: Construct a single-cell compute task

Description

A ggml_task is the contract object passed from the extraction layer to the dispatch layer. It bundles the operation name, the dense feature matrix (features in rows, cells in columns — the single-cell convention), the operation parameters and the requested device. It performs no computation.

Usage

ggml_task(op, matrix, params = list(), device = c("auto", "vulkan", "cpu"))

Value

An object of class ggml_task.

Arguments

op

Operation name; must be registered in ggml_ops_registry (e.g. "embed").

matrix

A numeric matrix (dense) or dgCMatrix (sparse). Rows are features (genes), columns are cells.

params

Named list of operation parameters (e.g. n_components).

device

"vulkan", "cpu" or "auto" (default).

See Also

ggml_run, ggml_ops_registry