Skip to content

Commit 5041c31

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 7deb404 commit 5041c31

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

torch_points3d/models/base_model.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from typing import Dict, Union
1+
from typing import Union
22

33
import torch
44
import torch.nn as nn
@@ -20,4 +20,4 @@ def forward(self) -> Union[torch.Tensor, None]:
2020
raise (NotImplementedError("forward needs to be defined!"))
2121

2222
def get_losses(self) -> Union[torch.Tensor, None]:
23-
raise (NotImplementedError("get_losses needs to be defined!"))
23+
raise (NotImplementedError("get_losses needs to be defined!"))

torch_points3d/models/segmentation/base_model.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
from omegaconf import DictConfig
2-
from typing import Dict, Union
2+
from typing import Union
33

44
import torch
55
import torch.nn as nn
@@ -41,4 +41,4 @@ def get_losses(self) -> Union[torch.Tensor, None]:
4141
return
4242

4343
self.loss = self.criterion(self.output, self.labels)
44-
return self.loss
44+
return self.loss

0 commit comments

Comments
 (0)