add dataset and dataloader for sample points (#195)

* add dataset and dataloader for sample points
* unittests
This commit is contained in:
Nicola Demo
2023-11-07 11:34:44 +01:00
parent cd5bc9a558
commit d654259428
19 changed files with 581 additions and 196 deletions

View File

@@ -111,8 +111,9 @@ class LpLoss(LossInterface):
# check consistency
check_consistency(p, (str,int,float))
self.p = p
check_consistency(relative, bool)
self.p = p
self.relative = relative
def forward(self, input, target):