Fix Codacy Warnings (#477)
--------- Co-authored-by: Dario Coscia <dariocos99@gmail.com>
This commit is contained in:
committed by
Nicola Demo
parent
e3790e049a
commit
4177bfbb50
@@ -3,8 +3,8 @@
|
||||
import torch
|
||||
|
||||
from .pinn import PINN
|
||||
from pina.operator import grad
|
||||
from pina.problem import SpatialProblem
|
||||
from ...operator import grad
|
||||
from ...problem import SpatialProblem
|
||||
|
||||
|
||||
class GradientPINN(PINN):
|
||||
@@ -32,7 +32,7 @@ class GradientPINN(PINN):
|
||||
\mathcal{L}_{\rm{problem}} =& \frac{1}{N}\sum_{i=1}^N
|
||||
\mathcal{L}(\mathcal{A}[\mathbf{u}](\mathbf{x}_i)) +
|
||||
\frac{1}{N}\sum_{i=1}^N
|
||||
\mathcal{L}(\mathcal{B}[\mathbf{u}](\mathbf{x}_i)) + \\
|
||||
\mathcal{L}(\mathcal{B}[\mathbf{u}](\mathbf{x}_i)) +
|
||||
&\frac{1}{N}\sum_{i=1}^N
|
||||
\nabla_{\mathbf{x}}\mathcal{L}(\mathcal{A}[\mathbf{u}](\mathbf{x}_i)) +
|
||||
\frac{1}{N}\sum_{i=1}^N
|
||||
|
||||
Reference in New Issue
Block a user