# -*- coding: utf-8 -*- """ GPU implementation for several OT solvers and utility functions. The GPU backend in handled by `cupy `_. .. warning:: Note that by default the module is not import in :mod:`ot`. In order to use it you need to explicitely import :mod:`ot.gpu` . By default, the functions in this module accept and return numpy arrays in order to proide drop-in replacement for the other POT function but the transfer between CPU en GPU comes with a significant overhead. In order to get the best performances, we recommend to give only cupy arrays to the functions and desactivate the conversion to numpy of the result of the function with parameter ``to_numpy=False``. """ # Author: Remi Flamary # Leo Gautheron # # License: MIT License from . import bregman from . import da from .bregman import sinkhorn from .da import sinkhorn_lpl1_mm from . import utils from .utils import dist, to_gpu, to_np __all__ = ["utils", "dist", "sinkhorn", "sinkhorn_lpl1_mm", 'bregman', 'da', 'to_gpu', 'to_np']