Update of LabelTensor class and fix Simplex domain (#362)
*Implement new methods in LabelTensor and fix operators
This commit is contained in:
committed by
Nicola Demo
parent
fdb8f65143
commit
7528f6ef74
@@ -27,4 +27,6 @@ class DataConditionInterface(ConditionInterface):
|
||||
def __setattr__(self, key, value):
|
||||
if (key == 'data') or (key == 'conditionalvariable'):
|
||||
check_consistency(value, (LabelTensor, Graph, torch.Tensor))
|
||||
DataConditionInterface.__dict__[key].__set__(self, value)
|
||||
DataConditionInterface.__dict__[key].__set__(self, value)
|
||||
elif key in ('_condition_type', '_problem', 'problem', 'condition_type'):
|
||||
super().__setattr__(key, value)
|
||||
Reference in New Issue
Block a user