# {py:mod}`abtem.core.backend`

```{py:module} abtem.core.backend
```

```{autodoc2-docstring} abtem.core.backend
:parser: rst
:allowtitles:
```

## Module Contents

### Functions

````{list-table}
:class: autosummary longtable
:align: left

* - {py:obj}`asnumpy <abtem.core.backend.asnumpy>`
  - ```{autodoc2-docstring} abtem.core.backend.asnumpy
    :parser: rst
    :summary:
    ```
* - {py:obj}`check_cupy_is_installed <abtem.core.backend.check_cupy_is_installed>`
  - ```{autodoc2-docstring} abtem.core.backend.check_cupy_is_installed
    :parser: rst
    :summary:
    ```
* - {py:obj}`copy_to_device <abtem.core.backend.copy_to_device>`
  - ```{autodoc2-docstring} abtem.core.backend.copy_to_device
    :parser: rst
    :summary:
    ```
* - {py:obj}`device_name_from_array_module <abtem.core.backend.device_name_from_array_module>`
  - ```{autodoc2-docstring} abtem.core.backend.device_name_from_array_module
    :parser: rst
    :summary:
    ```
* - {py:obj}`ensure_cuda_cluster <abtem.core.backend.ensure_cuda_cluster>`
  - ```{autodoc2-docstring} abtem.core.backend.ensure_cuda_cluster
    :parser: rst
    :summary:
    ```
* - {py:obj}`get_array_module <abtem.core.backend.get_array_module>`
  - ```{autodoc2-docstring} abtem.core.backend.get_array_module
    :parser: rst
    :summary:
    ```
* - {py:obj}`get_cuda_cluster_client <abtem.core.backend.get_cuda_cluster_client>`
  - ```{autodoc2-docstring} abtem.core.backend.get_cuda_cluster_client
    :parser: rst
    :summary:
    ```
* - {py:obj}`get_ndimage_module <abtem.core.backend.get_ndimage_module>`
  - ```{autodoc2-docstring} abtem.core.backend.get_ndimage_module
    :parser: rst
    :summary:
    ```
* - {py:obj}`get_scipy_module <abtem.core.backend.get_scipy_module>`
  - ```{autodoc2-docstring} abtem.core.backend.get_scipy_module
    :parser: rst
    :summary:
    ```
* - {py:obj}`is_gpu_dask_client <abtem.core.backend.is_gpu_dask_client>`
  - ```{autodoc2-docstring} abtem.core.backend.is_gpu_dask_client
    :parser: rst
    :summary:
    ```
* - {py:obj}`push_config_to_workers <abtem.core.backend.push_config_to_workers>`
  - ```{autodoc2-docstring} abtem.core.backend.push_config_to_workers
    :parser: rst
    :summary:
    ```
* - {py:obj}`validate_device <abtem.core.backend.validate_device>`
  - ```{autodoc2-docstring} abtem.core.backend.validate_device
    :parser: rst
    :summary:
    ```
````

### Data

````{list-table}
:class: autosummary longtable
:align: left

* - {py:obj}`ArrayModule <abtem.core.backend.ArrayModule>`
  - ```{autodoc2-docstring} abtem.core.backend.ArrayModule
    :parser: rst
    :summary:
    ```
* - {py:obj}`logger <abtem.core.backend.logger>`
  - ```{autodoc2-docstring} abtem.core.backend.logger
    :parser: rst
    :summary:
    ```
````

### API

````{py:data} ArrayModule
:canonical: abtem.core.backend.ArrayModule
:value: >
   None

```{autodoc2-docstring} abtem.core.backend.ArrayModule
:parser: rst
```

````

````{py:function} asnumpy(...)
:canonical: abtem.core.backend.asnumpy

```{autodoc2-docstring} abtem.core.backend.asnumpy
:parser: rst
```
````

````{py:function} check_cupy_is_installed()
:canonical: abtem.core.backend.check_cupy_is_installed

```{autodoc2-docstring} abtem.core.backend.check_cupy_is_installed
:parser: rst
```
````

````{py:function} copy_to_device(...)
:canonical: abtem.core.backend.copy_to_device

```{autodoc2-docstring} abtem.core.backend.copy_to_device
:parser: rst
```
````

````{py:function} device_name_from_array_module(...) -> str
:canonical: abtem.core.backend.device_name_from_array_module

```{autodoc2-docstring} abtem.core.backend.device_name_from_array_module
:parser: rst
```
````

````{py:function} ensure_cuda_cluster()
:canonical: abtem.core.backend.ensure_cuda_cluster

```{autodoc2-docstring} abtem.core.backend.ensure_cuda_cluster
:parser: rst
```
````

````{py:function} get_array_module(...) -> types.ModuleType
:canonical: abtem.core.backend.get_array_module

```{autodoc2-docstring} abtem.core.backend.get_array_module
:parser: rst
```
````

````{py:function} get_cuda_cluster_client()
:canonical: abtem.core.backend.get_cuda_cluster_client

```{autodoc2-docstring} abtem.core.backend.get_cuda_cluster_client
:parser: rst
```
````

````{py:function} get_ndimage_module(...) -> types.ModuleType
:canonical: abtem.core.backend.get_ndimage_module

```{autodoc2-docstring} abtem.core.backend.get_ndimage_module
:parser: rst
```
````

````{py:function} get_scipy_module(...)
:canonical: abtem.core.backend.get_scipy_module

```{autodoc2-docstring} abtem.core.backend.get_scipy_module
:parser: rst
```
````

````{py:function} is_gpu_dask_client(...) -> bool
:canonical: abtem.core.backend.is_gpu_dask_client

```{autodoc2-docstring} abtem.core.backend.is_gpu_dask_client
:parser: rst
```
````

````{py:data} logger
:canonical: abtem.core.backend.logger
:value: >
   'getLogger(...)'

```{autodoc2-docstring} abtem.core.backend.logger
:parser: rst
```

````

````{py:function} push_config_to_workers(...)
:canonical: abtem.core.backend.push_config_to_workers

```{autodoc2-docstring} abtem.core.backend.push_config_to_workers
:parser: rst
```
````

````{py:function} validate_device(...) -> str
:canonical: abtem.core.backend.validate_device

```{autodoc2-docstring} abtem.core.backend.validate_device
:parser: rst
```
````
