[BUG] Defining a __setattr__
funcion inside a @tensorclass creates weird problems
#1258
Open
3 tasks done
Labels
bug
Something isn't working
Describe the bug
Defining a
__setattr__
function inside a@tensorclass
seems to make the class unable to traverse its fields in some cases (the fields are not shown when printing an instance).(Probably) related to this is that when defining
__setattr__
,auto_batch_size_
andauto_device_
do not work (I suppose it uses the same logic to traverse the fields as print)To Reproduce
Expected behavior
PoC
andPoC_bug
classes should behave the same.Reason and Possible fixes
If you know or suspect the reason for this bug, paste the code lines and suggest modifications.
Checklist
The text was updated successfully, but these errors were encountered: