Documentation for v0.1 version (#199)
* Adding Equations, solving typos * improve _code.rst * the team rst and restuctore index.rst * fixing errors --------- Co-authored-by: Dario Coscia <dariocoscia@dhcp-015.eduroam.sissa.it>
This commit is contained in:
committed by
Nicola Demo
parent
3f9305d475
commit
8b7b61b3bd
@@ -39,7 +39,9 @@ def check_consistency(object, object_instance, subclass=False):
|
||||
raise ValueError(f"{type(obj).__name__} must be {object_instance}.")
|
||||
|
||||
|
||||
def number_parameters(model, aggregate=True, only_trainable=True): # TODO: check
|
||||
def number_parameters(model,
|
||||
aggregate=True,
|
||||
only_trainable=True): # TODO: check
|
||||
"""
|
||||
Return the number of parameters of a given `model`.
|
||||
|
||||
@@ -140,6 +142,7 @@ def chebyshev_roots(n):
|
||||
nodes = torch.sort(torch.cos(pi * (k + 0.5) / n))[0]
|
||||
return nodes
|
||||
|
||||
|
||||
# class PinaDataset():
|
||||
|
||||
# def __init__(self, pinn) -> None:
|
||||
@@ -187,7 +190,6 @@ def chebyshev_roots(n):
|
||||
# return self._len
|
||||
|
||||
|
||||
|
||||
class LabelTensorDataLoader(DataLoader):
|
||||
|
||||
def collate_fn(self, data):
|
||||
|
||||
Reference in New Issue
Block a user