Skip to content

Commit b2ebf3d

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 1882d16 commit b2ebf3d

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

torch_geometric/nn/models/gpse.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
import torch
1010
import torch.nn as nn
1111
import torch.nn.functional as F
12+
from torch.nn import Module
1213
from tqdm import trange
1314

1415
import torch_geometric.transforms as T
@@ -20,7 +21,6 @@
2021
global_max_pool,
2122
global_mean_pool,
2223
)
23-
from torch.nn import Module
2424
from torch_geometric.nn.resolver import activation_resolver
2525
from torch_geometric.utils import to_dense_batch
2626

@@ -716,8 +716,9 @@ def forward(self, x, pos_enc):
716716

717717

718718
@torch.no_grad()
719-
def gpse_process(model: Module, data: Data, rand_type: str, use_vn: bool = True,
720-
bernoulli_thresh: float = 0.5, neighbor_loader: bool = False,
719+
def gpse_process(model: Module, data: Data, rand_type: str,
720+
use_vn: bool = True, bernoulli_thresh: float = 0.5,
721+
neighbor_loader: bool = False,
721722
num_neighbors: List[int] = [30, 20, 10], fillval: int = 5,
722723
layers_mp: int = None, **kwargs) -> torch.Tensor:
723724
r"""Processes the data using the :class:`GPSE` model to generate and append

0 commit comments

Comments
 (0)