Skip to content
Snippets Groups Projects
Commit 082793d4 authored by Rickard Brüel Gabrielsson's avatar Rickard Brüel Gabrielsson
Browse files

Small change to avoid conflict when run with cuda

parent 93d79e54
No related branches found
No related tags found
No related merge requests found
...@@ -39,7 +39,7 @@ class Diagramlayer(Function): ...@@ -39,7 +39,7 @@ class Diagramlayer(Function):
start_time = time.time() start_time = time.time()
function_values = x function_values = x
# list of function values on vertices, and maximal dimension it will return 0,1,2,3 # list of function values on vertices, and maximal dimension it will return 0,1,2,3
function_useable = function_values.data.numpy().flatten() function_useable = function_values.cuda().data.numpy().flatten()
dgms, Tbl = computePersistence(F, -1.0 * function_useable.reshape(1,-1)) dgms, Tbl = computePersistence(F, -1.0 * function_useable.reshape(1,-1))
num_dgm_pts = np.max([len(dgms[0]), len(dgms[1]), len(dgms[2])]) num_dgm_pts = np.max([len(dgms[0]), len(dgms[1]), len(dgms[2])])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment