Skip to content

Commit

Permalink
Update functional.py (dmlc#4015)
Browse files Browse the repository at this point in the history
  • Loading branch information
mufeili authored May 17, 2022
1 parent bacf2ab commit de5543e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion python/dgl/transforms/functional.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,11 @@
import numpy as np
import scipy.sparse as sparse
import scipy.sparse.linalg
import torch as th

try:
import torch as th
except ImportError:
pass

from .._ffi.function import _init_api
from ..base import dgl_warning, DGLError, NID, EID
Expand Down

0 comments on commit de5543e

Please sign in to comment.