-
Notifications
You must be signed in to change notification settings - Fork 512
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
381 additions
and
195 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
--- | ||
name: Bug report | ||
about: Create a report to help us improve POT | ||
|
||
--- | ||
|
||
**Describe the bug** | ||
A clear and concise description of what the bug is. | ||
|
||
**To Reproduce** | ||
Steps to reproduce the behavior: | ||
1 ... | ||
2. | ||
|
||
**Expected behavior** | ||
A clear and concise description of what you expected to happen. | ||
|
||
**Screenshots** | ||
If applicable, add screenshots to help explain your problem. | ||
|
||
**Desktop (please complete the following information):** | ||
- OS: [e.g. MacOSX, Windows, Ubuntu] | ||
- Python version [2.7,3.6] | ||
- How was POT installed [source, pip, conda] | ||
|
||
Output of the following code snippet: | ||
```python | ||
import platform; print(platform.platform()) | ||
import sys; print("Python", sys.version) | ||
import numpy; print("NumPy", numpy.__version__) | ||
import scipy; print("SciPy", scipy.__version__) | ||
import ot; print("POT", ot.__version__) | ||
``` | ||
|
||
**Additional context** | ||
Add any other context about the problem here. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,37 @@ | ||
# -*- coding: utf-8 -*- | ||
""" | ||
from . import bregman | ||
from . import da | ||
from .bregman import sinkhorn | ||
This module provides GPU implementation for several OT solvers and utility | ||
functions. The GPU backend in handled by `cupy | ||
<https://cupy.chainer.org/>`_. | ||
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 erformances, we recommend to given 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 <[email protected]> | ||
# Leo Gautheron <https://github.com/aje> | ||
# | ||
# License: MIT License | ||
|
||
import warnings | ||
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 | ||
|
||
|
||
|
||
|
||
|
||
warnings.warn("the ot.gpu module is deprecated because cudamat in no longer maintained", DeprecationWarning, | ||
stacklevel=2) | ||
__all__ = ["utils", "dist", "sinkhorn", | ||
"sinkhorn_lpl1_mm", 'bregman', 'da', 'to_gpu', 'to_np'] | ||
|
||
__all__ = ["bregman", "da", "sinkhorn"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.