Skip to content

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

Open

Description

@vinayak-gosale

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions