Skip to content

Commit abd828a

Browse files
committed
gpu fix
1 parent f5d10e4 commit abd828a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

sef_dr/similarity.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ def fast_distance_matrix(A, B):
6464
:param use_gpu: set to True, if gpu must be used
6565
:return: the distance matrix
6666
"""
67-
67+
use_gpu = False
6868
# Use GPU if available
6969
if torch.cuda.device_count() > 0:
7070
use_gpu = True
@@ -90,7 +90,7 @@ def fast_heat_similarity_matrix(X, sigma):
9090
:param sigma: scaling factor
9191
:return: the similarity matrix
9292
"""
93-
93+
use_gpu = False
9494
# Use GPU if available
9595
if torch.cuda.device_count() > 0:
9696
use_gpu = True

sef_dr/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# License: MIT License https://github.com/passalis/sef/blob/master/LICENSE.txt
22
from __future__ import absolute_import, division, print_function, unicode_literals
33

4-
__version__ = "0.2.2b"
4+
__version__ = "0.2.2b1"

0 commit comments

Comments
 (0)