Last active
June 21, 2023 22:26
-
-
Save fauxneticien/57f81e20060bc2138d758b80e5b08e0e to your computer and use it in GitHub Desktop.
Example class
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
my_instantiated_object: | |
_target_: my_classes.my_abstract_class.MyAbstractClass | |
my_variable: used Hydra YAML! |
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 MyAbstractClass: | |
def __init__(self, my_variable): | |
self.my_variable = my_variable | |
def print_my_var(self): | |
print(self.my_variable) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment