Closed eschibli closed 2 years ago
Calling blurr.utils.PreCalculatedMSELoss() raises the following error:
blurr.utils.PreCalculatedMSELoss()
--------------------------------------------------------------------------- TypeError Traceback (most recent call last) /tmp/ipykernel_81/2999652958.py in <module> ----> 1 PreCalculatedMSELoss() /opt/conda/lib/python3.7/site-packages/blurr/utils.py in __init__(self, axis, floatify, *args, **kwargs) 91 class PreCalculatedMSELoss(PreCalculatedLoss): 92 def __init__(self, *args, axis=-1, floatify=True, **kwargs): ---> 93 super.__init__(nn.MSELoss, *args, axis=axis, floatify=floatify, is_2d=False, **kwargs) 94 95 TypeError: descriptor '__init__' requires a 'super' object but received a 'type'
This seems to be caused by a typo - super.__init__(...) should be super().__init__(...)
super.__init__(...)
super().__init__(...)
I'll take a look in next couple of days.
Calling
blurr.utils.PreCalculatedMSELoss()
raises the following error:This seems to be caused by a typo -
super.__init__(...)
should besuper().__init__(...)