napari_prism.pp.set_backend

Contents

napari_prism.pp.set_backend#

napari_prism.pp.set_backend(backend)#

Set the backend to use for processing. If GPU is selected, it will use rapids_singlecell. If CPU is selected, it will use scanpy. This function should be called before any other functions in this module are called.

Parameters:

backend (Literal['cpu', 'gpu']) – Backend to use. Must be either “cpu” or “gpu”.

Return type:

None