Backend

class minkit.Backend(btype='cpu', **kwargs)[source]

Bases: object

Object used in order to do operations with objects of the minkit module. Any object depending on a backend can be directly built using this class, which will forward itself during its construction.

Parameters:
  • btype (str) – backend type (cpu, cuda, opencl).
  • kwargs (dict) – arguments forwarded to the backend constructor (cuda and opencl backends only). See below for more details.

The keyword arguments can contain any of the following:

  • device: and integer defining the device to use.
  • interactive: whether to ask the user to select or correct the input device or not. If any problem appears and this argument is set to False (default), the first encountered device will be used and a warning will be displayed.

These arguments are only available in cuda and opencl backends only.

Attributes Summary

aop Object to do operations on arrays.
btype Backend type.

Attributes Documentation

aop

Object to do operations on arrays.

Type:ArrayOperations
btype

Backend type.

Type:str