Skip to content

Commit 4623ffd

Browse files
committed
Importing fix
1 parent 933115d commit 4623ffd

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pina/loss/ntk_weighting.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,11 @@
33
import torch
44
from torch.nn import Module
55
from .weighting_interface import WeightingInterface
6-
from ..operator import grad
76
from ..utils import check_consistency
87

8+
class _NoWeighting(WeightingInterface):
9+
def aggregate(self, losses):
10+
return sum(losses.values())
911

1012
class NeuralTangetKernelWeighting(WeightingInterface):
1113
"""

0 commit comments

Comments
 (0)