Last active
May 26, 2020 20:34
-
-
Save tswedish/fabfaff7c30cb1a7b9cf4eb265f64d21 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Variable: | |
def __init__(self, operation, input_variables=[]): | |
# note the setter for @property value below | |
self.value = operation | |
self.input_variables = input_variables | |
self.gradient = 0. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment