add dataset and dataloader for sample points (#195)
* add dataset and dataloader for sample points * unittests
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user