From 906f5592c078a3d1dc6228035c72fdc45a2e7cc1 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Thu, 9 Jan 2025 16:13:02 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- torch_geometric/data/batch.py | 1 - 1 file changed, 1 deletion(-) diff --git a/torch_geometric/data/batch.py b/torch_geometric/data/batch.py index 3bcbc3b4b1cc..99d0574c66e9 100644 --- a/torch_geometric/data/batch.py +++ b/torch_geometric/data/batch.py @@ -179,7 +179,6 @@ def filter(self, idx: torch.Tensor) -> Self: object (e.g., :obj:`[2:5]`), or a :obj:`torch.Tensor`/:obj:`np.ndarray` of type long or bool, or any sequence of integers (excluding strings). """ - mask = torch.zeros(len(self), dtype=torch.bool) try: mask[idx] = True