Fix Codacy Warnings (#477)

---------

Co-authored-by: Dario Coscia <dariocos99@gmail.com>
This commit is contained in:
Filippo Olivo
2025-03-10 15:38:45 +01:00
committed by Nicola Demo
parent e3790e049a
commit 4177bfbb50
157 changed files with 3473 additions and 3839 deletions

View File

@@ -1,11 +1,11 @@
"""Module for Multi FeedForward model"""
from abc import ABC, abstractmethod
import torch
from .feed_forward import FeedForward
class MultiFeedForward(torch.nn.Module):
class MultiFeedForward(torch.nn.Module, ABC):
"""
The PINA implementation of MultiFeedForward network.
@@ -24,3 +24,9 @@ class MultiFeedForward(torch.nn.Module):
for name, constructor_args in ffn_dict.items():
setattr(self, name, FeedForward(**constructor_args))
@abstractmethod
def forward(self, *args, **kwargs):
"""
TODO: Docstring
"""