Skip to content

Commit

Permalink
first local pre-commit run
Browse files Browse the repository at this point in the history
  • Loading branch information
gumityolcu committed Jun 3, 2024
1 parent 635332e commit 750a97e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/metrics/randomization.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
from metrics.base import Metric
from types import Callable
from utils.explanations import Explanations

import torch

from metrics.base import Metric
from utils.explanations import Explanations


class RandomizationMetric(Metric):
def __init__(self, seed=42, device: str = "cpu" if torch.cuda.is_available() else "cuda"):
Expand Down
3 changes: 3 additions & 0 deletions src/utils/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,12 @@
from typing import Any, Callable, Mapping
=======
from typing import Any
<<<<<<< HEAD
import torch

>>>>>>> 2de78d5 (changes for flake8)
=======
>>>>>>> 1e37eae (first local pre-commit run)

import torch

Expand Down

0 comments on commit 750a97e

Please sign in to comment.