kfkd-tutorial icon indicating copy to clipboard operation
kfkd-tutorial copied to clipboard

getattr( ... ).set_value() to be replaced by setattr( ... )

Open vinayak-gosale opened this issue 7 years ago • 0 comments

Hi.

Thank you so much for this epic tutorial. I tried the tutorial and I came across the error

AttributeError: 'float' object has no attribute 'set_value'

for this part of code: getattr(nn, self.name).set_value(new_value) in the AjustVariable class

I could fix it using: setattr(nn, self.name, new_value)

Please review

Thanks, Vinayak

vinayak-gosale avatar Mar 27 '17 06:03 vinayak-gosale