Skip to content

Commit 3e6f282

Browse files
authored
Remove typecast (#58)
1 parent 39e845f commit 3e6f282

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

torchts/utils/graph.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def scaled_laplacian(adj_mx, lambda_max=2, undirected=True):
4646
M, _ = L.shape
4747
I = sp.identity(M, format="csr", dtype=L.dtype)
4848
L = (2 / lambda_max * L) - I
49-
return L.astype(np.float32)
49+
return L
5050

5151

5252
def sparse_matrix(L):

0 commit comments

Comments
 (0)